pub struct CommandReceiver<T> { /* private fields */ }Expand description
Receiver half of a command queue (consumed by the signal thread).
Implementations§
Source§impl<T: Send + 'static> CommandReceiver<T>
impl<T: Send + 'static> CommandReceiver<T>
Sourcepub fn try_recv(&self) -> Result<T, QueueError>
pub fn try_recv(&self) -> Result<T, QueueError>
Try to receive a value from the queue without blocking.
§Errors
Returns QueueEmpty if no value is available, or
ChannelDisconnected if the sender has been dropped.
Auto Trait Implementations§
impl<T> Freeze for CommandReceiver<T>
impl<T> RefUnwindSafe for CommandReceiver<T>
impl<T> Send for CommandReceiver<T>where
T: Send,
impl<T> Sync for CommandReceiver<T>where
T: Send,
impl<T> Unpin for CommandReceiver<T>where
T: Unpin,
impl<T> UnsafeUnpin for CommandReceiver<T>
impl<T> UnwindSafe for CommandReceiver<T>
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