pub enum RecvTimeoutError {
Timeout,
Closed,
}Expand description
An error returned from the recv_deadline
and recv_timeout methods.
Variants§
Trait Implementations§
Source§impl Debug for RecvTimeoutError
impl Debug for RecvTimeoutError
impl Eq for RecvTimeoutError
Source§impl PartialEq for RecvTimeoutError
impl PartialEq for RecvTimeoutError
Source§fn eq(&self, other: &RecvTimeoutError) -> bool
fn eq(&self, other: &RecvTimeoutError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecvTimeoutError
Auto Trait Implementations§
impl Freeze for RecvTimeoutError
impl RefUnwindSafe for RecvTimeoutError
impl Send for RecvTimeoutError
impl Sync for RecvTimeoutError
impl Unpin for RecvTimeoutError
impl UnsafeUnpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
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