pub struct Instance<H = Supervisor> { /* private fields */ }Implementations§
Source§impl<H: Send + Sync + 'static> Instance<H>
impl<H: Send + Sync + 'static> Instance<H>
pub fn of<S: Observer<H>>() -> Self
pub fn with_context<T: Send + Sync + 'static>( self, factory: impl Fn(&H) -> T + Send + Sync + 'static, ) -> Self
pub fn declaration(&self) -> Declaration
pub fn id(&self) -> &'static str
pub fn streams(&self) -> &'static [Entry]
pub fn demand_keys(&self) -> &'static [DemandKey]
pub fn activation(&self) -> Activation
pub fn interval(&self) -> Duration
pub fn activate( &self, resources: Arc<ExecutionContext>, host: H, ) -> Result<Activity, ObserverError>
Auto Trait Implementations§
impl<H = Supervisor> !RefUnwindSafe for Instance<H>
impl<H = Supervisor> !UnwindSafe for Instance<H>
impl<H> Freeze for Instance<H>
impl<H> Send for Instance<H>
impl<H> Sync for Instance<H>
impl<H> Unpin for Instance<H>
impl<H> UnsafeUnpin for Instance<H>
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