Trait bgpd_rs::api::rpc::ApiServer[][src]

pub trait ApiServer: Sized + Send + Sync + 'static {
    fn show_peers<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<PeerSummary>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn show_peer_detail<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<PeerDetail>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn show_routes_learned<'life0, 'async_trait>(
        &'life0 self,
        from_peer: Option<IpNetwork>
    ) -> Pin<Box<dyn Future<Output = Vec<LearnedRoute>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn show_routes_advertised<'life0, 'async_trait>(
        &'life0 self,
        to_peer: Option<IpNetwork>
    ) -> Pin<Box<dyn Future<Output = Vec<LearnedRoute>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn advertise_route<'life0, 'async_trait>(
        &'life0 self,
        route: RouteSpec
    ) -> Pin<Box<dyn Future<Output = Result<LearnedRoute, String>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn advertise_flow<'life0, 'async_trait>(
        &'life0 self,
        flow: FlowSpec
    ) -> Pin<Box<dyn Future<Output = Result<LearnedRoute, String>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn into_rpc(self) -> RpcModule<Self> { ... } }
Expand description

Server trait implementation for the Api RPC API.

Required methods

Provided methods

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Implementors