pub struct WakerRing;Expand description
Factory for a thread-free async SPSC pair.
Implementations§
Source§impl WakerRing
impl WakerRing
Sourcepub fn create_anon_pair(
capacity: usize,
) -> Result<(WakerProducer, WakerConsumer), RingError>
pub fn create_anon_pair( capacity: usize, ) -> Result<(WakerProducer, WakerConsumer), RingError>
Anonymous in-process pair: a producer and a consumer sharing one
SPSC core and one waker cell. capacity must be a power of two.
Auto Trait Implementations§
impl Freeze for WakerRing
impl RefUnwindSafe for WakerRing
impl Send for WakerRing
impl Sync for WakerRing
impl Unpin for WakerRing
impl UnsafeUnpin for WakerRing
impl UnwindSafe for WakerRing
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