Struct object_store::limit::LimitUpload
source · 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