Struct tracing_mutex::stdsync::TracingOnce
source · [−]pub struct TracingOnce { /* private fields */ }Expand description
Wrapper around std::sync::Once.
Refer to the crate-level documentaiton for the differences between this struct and the one it wraps.
Implementations
sourceimpl TracingOnce
impl TracingOnce
sourcepub fn call_once<F>(&self, f: F) where
F: FnOnce(),
pub fn call_once<F>(&self, f: F) where
F: FnOnce(),
Wrapper for std::sync::Once::call_once.
Panics
In addition to the panics that Once can cause, this method will panic if calling it
introduces a cycle in the lock dependency graph.
sourcepub fn call_once_force<F>(&self, f: F) where
F: FnOnce(&OnceState),
pub fn call_once_force<F>(&self, f: F) where
F: FnOnce(&OnceState),
sourcepub fn is_completed(&self) -> bool
pub fn is_completed(&self) -> bool
Returns true if some call_once has completed successfully.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TracingOnce
impl Send for TracingOnce
impl Sync for TracingOnce
impl Unpin for TracingOnce
impl UnwindSafe for TracingOnce
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more