pub struct Consumer<'a> { /* private fields */ }Expand description
The sole taking handle for an EventFlags value.
This handle is Send + !Sync and may take pending conditions while its
paired producer raises them from another context.
ⓘ
use ph_eventing::event_flags::Consumer;
fn assert_sync<T: Sync>() {}
assert_sync::<Consumer<'static>>();Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Consumer<'a>
impl<'a> !Sync for Consumer<'a>
impl<'a> Freeze for Consumer<'a>
impl<'a> Send for Consumer<'a>
impl<'a> Unpin for Consumer<'a>
impl<'a> UnsafeUnpin for Consumer<'a>
impl<'a> UnwindSafe for Consumer<'a>
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