Skip to main content

Attachment

Trait Attachment 

Source
pub trait Attachment<C>:
    Send
    + Sync
    + 'static {
    // Required methods
    fn observers(&self) -> Vec<Declaration>;
    fn resources(&self) -> Arc<dyn Any + Sync + Send> ⓘ;
    fn quiesce(
        &self,
    ) -> Pin<Box<dyn Future<Output = Result<(), ServingError>> + Send + '_>>;
}

Required Methods§

Source

fn observers(&self) -> Vec<Declaration>

Source

fn resources(&self) -> Arc<dyn Any + Sync + Send> ⓘ

Source

fn quiesce( &self, ) -> Pin<Box<dyn Future<Output = Result<(), ServingError>> + Send + '_>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R: Send + Sync + 'static, H: ObserverHost<R>> Attachment<Supervisor> for ObserverAttachment<R, H>