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§
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>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".