pub enum TryError<T> {
WouldBlock,
Other(T),
}Expand description
Error returned by try_* socket methods.
WouldBlock indicates the operation would block (e.g. no data available,
send buffer full). Other wraps the socket-specific error type for any
other failure.
Variants§
Trait Implementations§
impl<T: Copy> Copy for TryError<T>
impl<T: Eq> Eq for TryError<T>
impl<T> StructuralPartialEq for TryError<T>
Auto Trait Implementations§
impl<T> Freeze for TryError<T>where
T: Freeze,
impl<T> RefUnwindSafe for TryError<T>where
T: RefUnwindSafe,
impl<T> Send for TryError<T>where
T: Send,
impl<T> Sync for TryError<T>where
T: Sync,
impl<T> Unpin for TryError<T>where
T: Unpin,
impl<T> UnwindSafe for TryError<T>where
T: UnwindSafe,
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