pub struct StaticRwLock(_);
Expand description

An SGX-based reader-writer lock., meant for use in static variables.

This rwlock has a const constructor (StaticRwLock::new), does not implement Drop to cleanup resources.

Implementations

Acquires shared access to the underlying lock, blocking the current thread to do so.

The lock is automatically unlocked when the returned guard is dropped.

Acquires write access to the underlying lock, blocking the current thread to do so.

The lock is automatically unlocked when the returned guard is dropped.

Trait Implementations

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.