Struct sgx_sync::MovableMutex
source · pub struct MovableMutex(/* private fields */);
Expand description
An SGX-based mutual exclusion lock.
This mutex cleans up its resources in its Drop
implementation, may safely
be moved (when not borrowed), and does not cause UB when used reentrantly.
This mutex does not implement poisoning.
This is either a wrapper around LazyBox<imp::Mutex>
or imp::Mutex
,
depending on the platform. It is boxed on platforms where imp::Mutex
may
not be moved.
Implementations§
source§impl MovableMutex
impl MovableMutex
Trait Implementations§
source§impl Default for MovableMutex
impl Default for MovableMutex
source§fn default() -> MovableMutex
fn default() -> MovableMutex
Returns the “default value” for a type. Read more
source§impl RawMutex for MovableMutex
impl RawMutex for MovableMutex
impl Sync for MovableMutex
Auto Trait Implementations§
impl RefUnwindSafe for MovableMutex
impl Send for MovableMutex
impl Unpin for MovableMutex
impl UnwindSafe for MovableMutex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more