Struct more_sync::VersionedGuard[][src]

pub struct VersionedGuard<'a, T> { /* fields omitted */ }
Expand description

Mutex guard returned by VersionedParker::lock.

Implementations

Returns the current version.

The version will not change unless wait() or wait_timeout() is called.

Returns if we were notified during last period.

If we never waited, notified() returns false.

Returns the number of times we were notified during last wait.

If we never waited, notification_count() returns 0.

Blocks the current thread until notified.

wait() updates the version stored in this guard.

Blocks the current thread until notified, for up to timeout.

wait_timeout() updates the version stored in this guard.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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

Performs the conversion.

Performs the conversion.

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.