pub struct Condvar { /* private fields */ }
Expand description

An SGX-based condition variable.

Implementations

Creates a new condition variable for use.

Signals one waiter on this condition variable to wake up.

Awakens all current waiters on this condition variable.

Waits for a signal on the specified mutex.

Behavior is undefined if the mutex is not locked by the current thread.

May panic if used with more than one mutex.

Waits for a signal on the specified mutex with a timeout duration specified by dur (a relative time into the future).

Behavior is undefined if the mutex is not locked by the current thread.

May panic if used with more than one mutex.

Trait Implementations

Returns the “default value” for a type. 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.