pub enum PushError<T> {
Full(T),
Closed(T),
}Expand description
Error produced while trying to push a single value to the buffer.
The error contains the value that was being pushed, so that the sender can try again later.
Variants§
Trait Implementations§
Source§impl<T> From<ClosedError<T>> for PushError<T>
impl<T> From<ClosedError<T>> for PushError<T>
Source§fn from(v: ClosedError<T>) -> Self
fn from(v: ClosedError<T>) -> Self
Converts to this type from the input type.
impl<T: Eq> Eq for PushError<T>
impl<T> StructuralPartialEq for PushError<T>
Auto Trait Implementations§
impl<T> Freeze for PushError<T>where
T: Freeze,
impl<T> RefUnwindSafe for PushError<T>where
T: RefUnwindSafe,
impl<T> Send for PushError<T>where
T: Send,
impl<T> Sync for PushError<T>where
T: Sync,
impl<T> Unpin for PushError<T>where
T: Unpin,
impl<T> UnwindSafe for PushError<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