pub enum TusBody {
Bytes(Bytes),
Reader(Box<dyn AsyncRead + Send + Unpin>),
}Expand description
Response body: small protocol messages or a streamed download.
Variants§
Bytes(Bytes)
Reader(Box<dyn AsyncRead + Send + Unpin>)
Streamed body (e.g. GET download). Framework layers map this to a streaming HTTP body.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TusBody
impl !RefUnwindSafe for TusBody
impl Send for TusBody
impl !Sync for TusBody
impl Unpin for TusBody
impl UnsafeUnpin for TusBody
impl !UnwindSafe for TusBody
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