Skip to main content

TopologyProxyInterface

Trait TopologyProxyInterface 

Source
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§

Required Methods§

Source

fn add_element(&self, payload: ElementSchema) -> Self::AddElementResponseFut

Source

fn lease(&self, payload: LeaseSchema) -> Self::LeaseResponseFut

Implementors§