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

Create a new Once value.

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.

Performs the same operation as call_once except it ignores poisoning.

Panics

This method participates in lock dependency tracking. If acquiring this lock introduces a dependency cycle, this method will panic.

Returns true if some call_once has completed successfully.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.