pub enum StreamResult {
Complete(usize),
Dropped,
Cancelled,
}Available on crate feature
async only.Expand description
Result of a StreamWriter::write or StreamReader::read operation,
yielded by the StreamWrite or StreamRead futures.
Variants§
Complete(usize)
The provided number of values were successfully transferred.
For writes this is how many items were written, and for reads this is how many items were read.
Dropped
No values were written, the other end has dropped its handle.
Cancelled
No values were written, the operation was cancelled.
Trait Implementations§
Source§impl Clone for StreamResult
impl Clone for StreamResult
Source§fn clone(&self) -> StreamResult
fn clone(&self) -> StreamResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamResult
Source§impl Debug for StreamResult
impl Debug for StreamResult
impl Eq for StreamResult
Source§impl PartialEq for StreamResult
impl PartialEq for StreamResult
Source§fn eq(&self, other: &StreamResult) -> bool
fn eq(&self, other: &StreamResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamResult
Auto Trait Implementations§
impl Freeze for StreamResult
impl RefUnwindSafe for StreamResult
impl Send for StreamResult
impl Sync for StreamResult
impl Unpin for StreamResult
impl UnsafeUnpin for StreamResult
impl UnwindSafe for StreamResult
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