pub enum Io {
Error(String),
Read(Result<Output, Vec<u8>>),
Write(Result<Output, Vec<u8>>),
}
Expand description
The streams I/O request 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§
Error(String)
Generic error related to coroutine progression.
Read(Result<Output, Vec<u8>>)
I/O for reading bytes.
Write(Result<Output, Vec<u8>>)
I/O for writing bytes.
Implementations§
Trait Implementations§
impl Eq for Io
impl StructuralPartialEq for Io
Auto Trait Implementations§
impl Freeze for Io
impl RefUnwindSafe for Io
impl Send for Io
impl Sync for Io
impl Unpin for Io
impl UnwindSafe for Io
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