pub enum RecvError {
InvalidState,
Empty,
NotConnected,
StreamClosed,
Io(Error),
}
Variants§
InvalidState
Empty
NotConnected
StreamClosed
The peer has sent a FIN, so no more data will be received.
Io(Error)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecvError
impl !RefUnwindSafe for RecvError
impl Send for RecvError
impl Sync for RecvError
impl Unpin for RecvError
impl !UnwindSafe for RecvError
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