pub struct EventFlags { /* private fields */ }Expand description
Implementations§
Source§impl EventFlags
impl EventFlags
Sourcepub fn try_producer(&self) -> Option<Producer<'_>>
pub fn try_producer(&self) -> Option<Producer<'_>>
Try to acquire the sole producer handle.
Returns None while another producer handle is active.
Sourcepub fn try_consumer(&self) -> Option<Consumer<'_>>
pub fn try_consumer(&self) -> Option<Consumer<'_>>
Try to acquire the sole consumer handle.
Returns None while another consumer handle is active.
Trait Implementations§
Source§impl Debug for EventFlags
impl Debug for EventFlags
Auto Trait Implementations§
impl !Freeze for EventFlags
impl RefUnwindSafe for EventFlags
impl Send for EventFlags
impl Sync for EventFlags
impl Unpin for EventFlags
impl UnsafeUnpin for EventFlags
impl UnwindSafe for EventFlags
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