pub struct ClosedError<T>(pub T);Expand description
Error produced when trying to do an operation but the other side is closed.
For RingBufferProducer, most functions will start returning this error
as soon as the receiver has been dropped. The error may contain the value
that was being pushed, so that the sender can do something with it.
For RingBufferConsumer, most functions will start returning this error
only after all the data in the buffer has been consumed and it is now empty.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for ClosedError<T>
impl<T: Clone> Clone for ClosedError<T>
Source§fn clone(&self) -> ClosedError<T>
fn clone(&self) -> ClosedError<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ClosedError<T>
impl<T: Debug> Debug for ClosedError<T>
Source§impl<T> Display for ClosedError<T>
impl<T> Display for ClosedError<T>
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.
Source§impl<T: PartialEq> PartialEq for ClosedError<T>
impl<T: PartialEq> PartialEq for ClosedError<T>
impl<T: Eq> Eq for ClosedError<T>
impl<T> StructuralPartialEq for ClosedError<T>
Auto Trait Implementations§
impl<T> Freeze for ClosedError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ClosedError<T>where
T: RefUnwindSafe,
impl<T> Send for ClosedError<T>where
T: Send,
impl<T> Sync for ClosedError<T>where
T: Sync,
impl<T> Unpin for ClosedError<T>where
T: Unpin,
impl<T> UnwindSafe for ClosedError<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