pub enum ReadStreamResult {
Ok(StreamOutput),
Io(StreamIo),
Eof,
Err(ReadStreamError),
}
Expand description
Output emitted after a coroutine finishes its progression.
Variants§
Ok(StreamOutput)
The coroutine has successfully terminated its progression.
Io(StreamIo)
A stream I/O needs to be performed to make the coroutine progress.
Eof
The coroutine reached the End Of File.
Only the consumer can determine if its an error or not.
Err(ReadStreamError)
An error occured during the coroutine progression.
Trait Implementations§
Source§impl Clone for ReadStreamResult
impl Clone for ReadStreamResult
Source§fn clone(&self) -> ReadStreamResult
fn clone(&self) -> ReadStreamResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ReadStreamResult
impl RefUnwindSafe for ReadStreamResult
impl Send for ReadStreamResult
impl Sync for ReadStreamResult
impl Unpin for ReadStreamResult
impl UnwindSafe for ReadStreamResult
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