pub struct Owner<P: Plugin> { /* private fields */ }Implementations§
Source§impl<P: Plugin> Owner<P>
impl<P: Plugin> Owner<P>
pub fn new( contracts: Vec<Contract>, capacity: NonZeroUsize, ) -> Result<(Arc<Self>, Table<P>), Error<P>>
pub fn new_with_observers( contracts: Vec<Contract>, capacity: NonZeroUsize, observers: Vec<Declaration>, ) -> Result<(Arc<Self>, Table<P>), Error<P>>
pub async fn quiesce(&self) -> Result<(), Error<P>>
pub async fn retire(self: &Arc<Self>) -> Result<(), Error<P>>
Auto Trait Implementations§
impl<P> !Freeze for Owner<P>
impl<P> RefUnwindSafe for Owner<P>where
Arc<Mutex<Slot<P>>>: RefUnwindSafe,
Weak<Mutex<WireTable<<P as Plugin>::Context>>>: RefUnwindSafe,
Mutex<Retirement<P>>: RefUnwindSafe,
impl<P> Send for Owner<P>
impl<P> Sync for Owner<P>
impl<P> Unpin for Owner<P>
impl<P> UnsafeUnpin for Owner<P>where
Arc<Mutex<Slot<P>>>: UnsafeUnpin,
Weak<Mutex<WireTable<<P as Plugin>::Context>>>: UnsafeUnpin,
Mutex<Retirement<P>>: UnsafeUnpin,
impl<P> UnwindSafe for Owner<P>where
Arc<Mutex<Slot<P>>>: UnwindSafe,
Weak<Mutex<WireTable<<P as Plugin>::Context>>>: UnwindSafe,
Mutex<Retirement<P>>: 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