pub struct OnceCellEntity {
pub waiter_count: u32,
pub state: OnceCellState,
}Fields§
§waiter_count: u32Number of tasks currently waiting for initialization.
state: OnceCellStateCurrent once-cell lifecycle state.
Trait Implementations§
Source§impl EntityBodySlot for OnceCellEntity
impl EntityBodySlot for OnceCellEntity
const KIND_NAME: &'static str = "OnceCell"
type Value = OnceCellEntity
fn project(body: &EntityBody) -> Option<&Self::Value>
fn project_mut(body: &mut EntityBody) -> Option<&mut Self::Value>
Source§impl<'ʄ> Facet<'ʄ> for OnceCellEntity
impl<'ʄ> Facet<'ʄ> for OnceCellEntity
Source§impl From<OnceCellEntity> for EntityBody
impl From<OnceCellEntity> for EntityBody
Source§fn from(value: OnceCellEntity) -> Self
fn from(value: OnceCellEntity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OnceCellEntity
impl RefUnwindSafe for OnceCellEntity
impl Send for OnceCellEntity
impl Sync for OnceCellEntity
impl Unpin for OnceCellEntity
impl UnsafeUnpin for OnceCellEntity
impl UnwindSafe for OnceCellEntity
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