pub enum Data {
ReadableStream(ReadableStream),
Stream(FixedLengthStream),
Text(String),
Bytes(Vec<u8>),
Empty,
}
Variants§
Trait Implementations§
source§impl From<FixedLengthStream> for Data
impl From<FixedLengthStream> for Data
source§fn from(stream: FixedLengthStream) -> Self
fn from(stream: FixedLengthStream) -> Self
Converts to this type from the input type.
source§impl From<ReadableStream> for Data
impl From<ReadableStream> for Data
source§fn from(stream: ReadableStream) -> Self
fn from(stream: ReadableStream) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Data
impl !RefUnwindSafe for Data
impl !Send for Data
impl !Sync for Data
impl Unpin for Data
impl !UnwindSafe for Data
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