Struct bus_queue::BareSubscriber
source · pub struct BareSubscriber<T: Send> { /* private fields */ }
Implementations
sourceimpl<T: Send> BareSubscriber<T>
impl<T: Send> BareSubscriber<T>
sourcepub fn try_recv(&self) -> Result<Arc<T>, TryRecvError>
pub fn try_recv(&self) -> Result<Arc<T>, TryRecvError>
Receives some atomic refrence to an object if queue is not empty, or None if it is
Trait Implementations
sourceimpl<T: Send> Clone for BareSubscriber<T>
impl<T: Send> Clone for BareSubscriber<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for BareSubscriber<T>where
T: RefUnwindSafe,
impl<T> Send for BareSubscriber<T>where
T: Sync,
impl<T> Sync for BareSubscriber<T>where
T: Sync,
impl<T> Unpin for BareSubscriber<T>
impl<T> UnwindSafe for BareSubscriber<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more