pub struct RwSpinlock<T> { /* private fields */ }Implementations§
Source§impl<T> RwSpinlock<T>
impl<T> RwSpinlock<T>
pub fn new(value: T) -> Self
pub fn try_write(&self) -> Option<RwSpinlockGuard<'_, T>>
pub fn try_read(&self) -> Option<RwSpinlockGuard<'_, T>>
pub fn write(&self) -> RwSpinlockGuard<'_, T>
pub fn read(&self) -> RwSpinlockGuard<'_, T>
Trait Implementations§
impl<T: Send> Send for RwSpinlock<T>
impl<T: Send> Sync for RwSpinlock<T>
Auto Trait Implementations§
impl<T> !Freeze for RwSpinlock<T>
impl<T> !RefUnwindSafe for RwSpinlock<T>
impl<T> Unpin for RwSpinlock<T>where
T: Unpin,
impl<T> UnwindSafe for RwSpinlock<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