pub struct Once(AtomicU8);
🔬This is a nightly-only experimental API. (
kernel_sync_once
)Available on non-crate feature
use_std
only.Tuple Fields§
§0: AtomicU8
🔬This is a nightly-only experimental API. (
kernel_sync_once
)Implementations§
Source§impl Once
impl Once
pub const fn new() -> Self
🔬This is a nightly-only experimental API. (
kernel_sync_once
)pub fn call_once<F: FnOnce()>(&self, f: F)
🔬This is a nightly-only experimental API. (
kernel_sync_once
)pub fn is_complete(&self) -> bool
🔬This is a nightly-only experimental API. (
kernel_sync_once
)Auto Trait Implementations§
impl !Freeze for Once
impl RefUnwindSafe for Once
impl Send for Once
impl Sync for Once
impl Unpin for Once
impl UnwindSafe for Once
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more