pub struct ObjectStream { /* private fields */ }Available on crate feature
s3 only.Expand description
The body of an object that Bucket::get_stream and
Bucket::get_stream_strict give.
A read gives the bytes in bounded chunks, as a Body does. The stream
holds an admission permit of the fetcher until it ends or is dropped. A
failure in transit fails the read, and the caller reads the object
again.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ObjectStream
impl !RefUnwindSafe for ObjectStream
impl !UnwindSafe for ObjectStream
impl Forget for ObjectStream
impl Move for ObjectStream
impl Send for ObjectStreamwhere
Arc<Shared>: Send,
Arc<Mutex<Shared>>: Send,
Arc<Mutex<Inner>>: Send,
Bytes: Send,
RawVecInner: Send,
Arc<Inner>: Send,
Arc<[Arc<Atomic<u64>>]>: Send,
Arc<Inner>: Send,
Arc<Chan<Envelope<Request<RequestBody>, Response<Incoming>>, Semaphore>>: Send,
Arc<Gate>: Send,
Waker: Send,
Arc<Atomic<bool>>: Send,
Arc<Exchange>: Send,
impl Sync for ObjectStreamwhere
Arc<Shared>: Sync,
Arc<Mutex<Shared>>: Sync,
Arc<Mutex<Inner>>: Sync,
Bytes: Sync,
RawVecInner: Sync,
Arc<Inner>: Sync,
Arc<[Arc<Atomic<u64>>]>: Sync,
Arc<Inner>: Sync,
Arc<Chan<Envelope<Request<RequestBody>, Response<Incoming>>, Semaphore>>: Sync,
Arc<Gate>: Sync,
Waker: Sync,
Arc<Atomic<bool>>: Sync,
Arc<Exchange>: Sync,
impl Unpin for ObjectStreamwhere
Arc<Shared>: Unpin,
Arc<Mutex<Shared>>: Unpin,
Arc<Mutex<Inner>>: Unpin,
*const u8: Unpin,
Align8<*mut ()>: Unpin,
&'static Vtable: Unpin,
*const u8 is !null: Unpin,
Arc<Inner>: Unpin,
Arc<[Arc<Atomic<u64>>]>: Unpin,
Arc<Inner>: Unpin,
Arc<Chan<Envelope<Request<RequestBody>, Response<Incoming>>, Semaphore>>: Unpin,
Arc<Gate>: Unpin,
Waker: Unpin,
Arc<Atomic<bool>>: Unpin,
Arc<Exchange>: Unpin,
impl UnsafeUnpin for ObjectStreamwhere
*const ArcInner<Shared> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared>>: UnsafeUnpin,
*const ArcInner<Mutex<Shared>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Shared>>>: UnsafeUnpin,
*const ArcInner<Mutex<Inner>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Inner>>>: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const ArcInner<[Arc<Atomic<u64>>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Arc<Atomic<u64>>]>>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const ArcInner<Chan<Envelope<Request<RequestBody>, Response<Incoming>>, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<Envelope<Request<RequestBody>, Response<Incoming>>, Semaphore>>>: UnsafeUnpin,
*const ArcInner<Gate> is !null: UnsafeUnpin,
PhantomData<ArcInner<Gate>>: UnsafeUnpin,
*const (): UnsafeUnpin,
&'static RawWakerVTable: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<Exchange> is !null: UnsafeUnpin,
PhantomData<ArcInner<Exchange>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<R> AsyncReadExt for R
impl<R> AsyncReadExt for R
Source§fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self> ⓘwhere
Self: Unpin,
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self> ⓘwhere
Self: Unpin,
Reads some bytes from the byte stream. Read more
Source§fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> ReadVectoredFuture<'a, Self> ⓘwhere
Self: Unpin,
fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> ReadVectoredFuture<'a, Self> ⓘwhere
Self: Unpin,
Source§fn read_to_end<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
) -> ReadToEndFuture<'a, Self> ⓘwhere
Self: Unpin,
fn read_to_end<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
) -> ReadToEndFuture<'a, Self> ⓘwhere
Self: Unpin,
Source§fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String,
) -> ReadToStringFuture<'a, Self> ⓘwhere
Self: Unpin,
fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String,
) -> ReadToStringFuture<'a, Self> ⓘwhere
Self: Unpin,
Source§fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self> ⓘwhere
Self: Unpin,
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self> ⓘwhere
Self: Unpin,
Reads the exact number of bytes required to fill
buf. Read moreSource§fn take(self, limit: u64) -> Take<Self>where
Self: Sized,
fn take(self, limit: u64) -> Take<Self>where
Self: Sized,
Creates an adapter which will read at most
limit bytes from it. Read moreSource§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