Struct sgx_trts::sync::SpinRwLock
source · [−]pub struct SpinRwLock<T: ?Sized> { /* private fields */ }
Implementations
sourceimpl<T> SpinRwLock<T>
impl<T> SpinRwLock<T>
pub const fn new(data: T) -> SpinRwLock<T>
pub fn into_inner(self) -> T
sourceimpl<T: ?Sized> SpinRwLock<T>
impl<T: ?Sized> SpinRwLock<T>
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
sourceimpl<T: ?Sized + Debug> Debug for SpinRwLock<T>
impl<T: ?Sized + Debug> Debug for SpinRwLock<T>
sourceimpl<T: ?Sized + Default> Default for SpinRwLock<T>
impl<T: ?Sized + Default> Default for SpinRwLock<T>
sourcefn default() -> SpinRwLock<T>
fn default() -> SpinRwLock<T>
Returns the “default value” for a type. Read more
sourceimpl<T> From<T> for SpinRwLock<T>
impl<T> From<T> for SpinRwLock<T>
sourcefn from(value: T) -> SpinRwLock<T>
fn from(value: T) -> SpinRwLock<T>
Converts to this type from the input type.
sourceimpl RawRwLock for SpinRwLock<()>
impl RawRwLock for SpinRwLock<()>
impl<T: ContiguousMemory> ContiguousMemory for SpinRwLock<T>
impl<T: ?Sized + Send> Send for SpinRwLock<T>
impl<T: ?Sized + Send + Sync> Sync for SpinRwLock<T>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more