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 + Send + Sync> ⓘ;
    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 + Send + Sync> ⓘ

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§