pub struct TracingMutex<T> { /* private fields */ }
Expand description

Wrapper for std::sync::Mutex.

Refer to the crate-level documentaiton for the differences between this struct and the one it wraps.

Implementations

Create a new tracing mutex with the provided value.

Wrapper for std::sync::Mutex::lock.

Panics

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

Wrapper for std::sync::Mutex::try_lock.

Panics

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

Return a mutable reference to the underlying data.

This method does not block as the locking is handled compile-time by the type system.

Unwrap the mutex and return its inner value.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

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

Converts to this type from the input type.

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.