pub enum StreamIo {
Read(Result<StreamOutput, Vec<u8>>),
Write(Result<StreamOutput, Vec<u8>>),
}
Expand description
The stream I/O request and response enum, emitted by coroutines and processed by runtimes.
Represents all the possible I/O requests that a stream coroutine can emit. Runtimes should be able to handle all variants.
Variants§
Read(Result<StreamOutput, Vec<u8>>)
Write(Result<StreamOutput, Vec<u8>>)
Trait Implementations§
impl Eq for StreamIo
impl StructuralPartialEq for StreamIo
Auto Trait Implementations§
impl Freeze for StreamIo
impl RefUnwindSafe for StreamIo
impl Send for StreamIo
impl Sync for StreamIo
impl Unpin for StreamIo
impl UnwindSafe for StreamIo
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