Struct sgx_sync::SpinRwLock
source · pub struct SpinRwLock<T>where
T: ?Sized,{ /* private fields */ }
Implementations§
source§impl<T> SpinRwLock<T>
impl<T> SpinRwLock<T>
pub const fn new(data: T) -> SpinRwLock<T>
pub fn into_inner(self) -> T
source§impl<T> SpinRwLock<T>where
T: ?Sized,
impl<T> SpinRwLock<T>where T: ?Sized,
pub fn read(&self) -> SpinRwLockReadGuard<'_, T>
pub fn write(&self) -> SpinRwLockWriteGuard<'_, T>
pub fn try_read(&self) -> Option<SpinRwLockReadGuard<'_, T>>
pub fn try_write(&self) -> Option<SpinRwLockWriteGuard<'_, T>>
pub fn get_mut(&mut self) -> &mut T
Trait Implementations§
source§impl<T> Default for SpinRwLock<T>where
T: Default + ?Sized,
impl<T> Default for SpinRwLock<T>where T: Default + ?Sized,
source§fn default() -> SpinRwLock<T>
fn default() -> SpinRwLock<T>
Returns the “default value” for a type. Read more
source§impl<T> From<T> for SpinRwLock<T>
impl<T> From<T> for SpinRwLock<T>
source§fn from(value: T) -> SpinRwLock<T>
fn from(value: T) -> SpinRwLock<T>
Converts to this type from the input type.
source§impl RawRwLock for SpinRwLock<()>
impl RawRwLock for SpinRwLock<()>
impl<T> ContiguousMemory for SpinRwLock<T>where T: ContiguousMemory,
impl<T> Send for SpinRwLock<T>where T: Send + ?Sized,
impl<T> Sync for SpinRwLock<T>where T: Send + Sync + ?Sized,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SpinRwLock<T>
impl<T: ?Sized> Unpin for SpinRwLock<T>where T: Unpin,
impl<T: ?Sized> UnwindSafe for SpinRwLock<T>where T: UnwindSafe,
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