struct BitWaker<const LEN: usize>{
index: usize,
shared: Option<&'static WakerShared<LEN>>,
}Expand description
A Waker that can be used to wake a sub-future within an outer task while tracking which sub-future it is.
Fields§
§index: usizeIndex for this sub-future within self.shared.
Shared state for all sub-futures running in the same Executor.
Implementations§
Source§impl<const LEN: usize> BitWaker<LEN>
impl<const LEN: usize> BitWaker<LEN>
const VTABLE: &RawWakerVTable
Sourceconst fn invalid() -> Self
const fn invalid() -> Self
Creates a new BitWaker that will panic if used, for const-initialization purposes.
Sourceconst fn new(index: usize, shared: &'static WakerShared<LEN>) -> Self
const fn new(index: usize, shared: &'static WakerShared<LEN>) -> Self
Creates a new BitWaker for the future at the given index in the WakerShared.
Sourcefn wake_by_ref(&self)
fn wake_by_ref(&self)
Set the bit for this waker’s index in its WakerShared.
Trait Implementations§
Auto Trait Implementations§
impl<const LEN: usize> Freeze for BitWaker<LEN>
impl<const LEN: usize> !RefUnwindSafe for BitWaker<LEN>
impl<const LEN: usize> Send for BitWaker<LEN>
impl<const LEN: usize> Sync for BitWaker<LEN>
impl<const LEN: usize> Unpin for BitWaker<LEN>
impl<const LEN: usize> !UnwindSafe for BitWaker<LEN>
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