pub struct LimitUpload { /* private fields */ }Expand description
An MultipartUpload wrapper that limits the maximum number of concurrent requests
Implementations§
Source§impl LimitUpload
impl LimitUpload
Sourcepub fn new(upload: Box<dyn MultipartUpload>, max_concurrency: usize) -> Self
pub fn new(upload: Box<dyn MultipartUpload>, max_concurrency: usize) -> Self
Create a new LimitUpload limiting upload to max_concurrency concurrent requests
Trait Implementations§
Source§impl Debug for LimitUpload
impl Debug for LimitUpload
Source§impl MultipartUpload for LimitUpload
impl MultipartUpload for LimitUpload
Source§fn put_part(&mut self, data: PutPayload) -> UploadPart
fn put_part(&mut self, data: PutPayload) -> UploadPart
Upload the next part Read more
Auto Trait Implementations§
impl Freeze for LimitUpload
impl !RefUnwindSafe for LimitUpload
impl Send for LimitUpload
impl !Sync for LimitUpload
impl Unpin for LimitUpload
impl !UnwindSafe for LimitUpload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more