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§
fn observers(&self) -> Vec<Declaration>
fn resources(&self) -> Arc<dyn Any + Send + Sync> ⓘ
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".