Struct enarx_shim_kvm::spin::RwLocked
source · [−]pub struct RwLocked<A> { /* private fields */ }
Expand description
A wrapper around spinning::RwLock to permit trait implementations.
Implementations
sourceimpl RwLocked<HostCallAllocator>
impl RwLocked<HostCallAllocator>
sourcepub fn try_alloc(&self) -> Option<BlockGuard>
pub fn try_alloc(&self) -> Option<BlockGuard>
Try to allocate a HostCall
object to use a sallyport::Block
sourceimpl RwLocked<GhcbHandle<'_>>
impl RwLocked<GhcbHandle<'_>>
sourceimpl<A> RwLocked<A>
impl<A> RwLocked<A>
sourcepub fn read(&self) -> RwLockReadGuard<'_, A>
pub fn read(&self) -> RwLockReadGuard<'_, A>
get a RwLockReadGuard
sourcepub fn write(&self) -> RwLockWriteGuard<'_, A>
pub fn write(&self) -> RwLockWriteGuard<'_, A>
get a RwLockWriteGuard
Auto Trait Implementations
impl<A> !RefUnwindSafe for RwLocked<A>
impl<A> Send for RwLocked<A> where
A: Send,
impl<A> Sync for RwLocked<A> where
A: Send + Sync,
impl<A> Unpin for RwLocked<A> where
A: Unpin,
impl<A> UnwindSafe for RwLocked<A> where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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