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