pub struct PluginCell<T> { /* private fields */ }Implementations§
Source§impl<T> PluginCell<T>
impl<T> PluginCell<T>
pub fn new(value: T) -> Self
Sourcepub fn enter(&self) -> PluginGuard<'_, T>
pub fn enter(&self) -> PluginGuard<'_, T>
Take ownership. Never blocks: the previous owner has already
released, by the host contract. The Acquire observes its
writes.
Trait Implementations§
impl<T: Send> Send for PluginCell<T>
impl<T: Send> Sync for PluginCell<T>
Auto Trait Implementations§
impl<T> !Freeze for PluginCell<T>
impl<T> !RefUnwindSafe for PluginCell<T>
impl<T> Unpin for PluginCell<T>where
T: Unpin,
impl<T> UnsafeUnpin for PluginCell<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PluginCell<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