Skip to main content

Attach

Trait Attach 

Source
pub trait Attach:
    Clone
    + Send
    + Sync
    + 'static {
    type Error: Display + Send + 'static;

    // Required methods
    fn owner(&self) -> &str;
    fn attach(
        &self,
    ) -> impl Future<Output = Result<Attached, Self::Error>> + Send;

    // Provided methods
    fn publications(&self) -> Vec<StreamDeclaration> { ... }
    fn observers(&self) -> Vec<Declaration> { ... }
    fn operations(&self) -> Result<Vec<OperationDefinition>> { ... }
    fn operation_contracts(&self) -> Result<Option<Vec<Contract>>> { ... }
    fn required_contracts(&self) -> Result<Option<Vec<Required>>> { ... }
    fn sdk_lifecycle(&self) -> Result<Option<[Descriptor; 2]>> { ... }
    fn observe_contract(&self) -> Result<Option<Contract>> { ... }
    fn listener_declarations(&self) -> Result<Option<Vec<Definition>>> { ... }
}

Required Associated Types§

Source

type Error: Display + Send + 'static

Required Methods§

Source

fn owner(&self) -> &str

Source

fn attach(&self) -> impl Future<Output = Result<Attached, Self::Error>> + Send

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§