pub(crate) enum TryPopResult<T> {
Ok(T),
Empty,
Closed,
Busy,
}
Expand description
Return value of Rx::try_pop
.
Variants§
Ok(T)
Successfully popped a value.
Empty
The channel is empty.
Closed
The channel is empty and closed.
Busy
The channel is not empty, but the first value is being written.
Auto Trait Implementations§
impl<T> Freeze for TryPopResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for TryPopResult<T>where
T: RefUnwindSafe,
impl<T> Send for TryPopResult<T>where
T: Send,
impl<T> Sync for TryPopResult<T>where
T: Sync,
impl<T> Unpin for TryPopResult<T>where
T: Unpin,
impl<T> UnwindSafe for TryPopResult<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