pub trait TopologyProxyInterface: Send + Sync {
type AddElementResponseFut: Future<Output = Result<TopologyAddElementResult, Error>> + Send;
type LeaseResponseFut: Future<Output = Result<TopologyLeaseResult, Error>> + Send;
// Required methods
fn add_element(&self, payload: ElementSchema) -> Self::AddElementResponseFut;
fn lease(&self, payload: LeaseSchema) -> Self::LeaseResponseFut;
}Required Associated Types§
type AddElementResponseFut: Future<Output = Result<TopologyAddElementResult, Error>> + Send
type LeaseResponseFut: Future<Output = Result<TopologyLeaseResult, Error>> + Send
Required Methods§
fn add_element(&self, payload: ElementSchema) -> Self::AddElementResponseFut
fn lease(&self, payload: LeaseSchema) -> Self::LeaseResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".