pub struct PromiseRecord {
pub id: PromiseId,
pub state: PromiseState,
pub waiters: u32,
pub lane: u64,
}Expand description
Provider-side record of one promise.
Fields§
§id: PromiseIdKernel-assigned identifier.
state: PromiseStateCurrent state (pending until the producing call settles).
waiters: u32Calls waiting on this promise (derived, informational).
lane: u64Lane that issued the producing call.
Implementations§
Source§impl PromiseRecord
impl PromiseRecord
Trait Implementations§
Source§impl Clone for PromiseRecord
impl Clone for PromiseRecord
Source§impl Debug for PromiseRecord
impl Debug for PromiseRecord
Source§impl PartialEq for PromiseRecord
impl PartialEq for PromiseRecord
impl StructuralPartialEq for PromiseRecord
Auto Trait Implementations§
impl Freeze for PromiseRecord
impl RefUnwindSafe for PromiseRecord
impl Send for PromiseRecord
impl Sync for PromiseRecord
impl Unpin for PromiseRecord
impl UnsafeUnpin for PromiseRecord
impl UnwindSafe for PromiseRecord
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