Trait bgpd_rs::api::rpc::ApiClient [−][src]
pub trait ApiClient: Client {
fn show_peers<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<PeerSummary>, RPCError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn show_peer_detail<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<PeerDetail>, RPCError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn show_routes_learned<'life0, 'async_trait>(
&'life0 self,
from_peer: Option<IpNetwork>
) -> Pin<Box<dyn Future<Output = Result<Vec<LearnedRoute>, RPCError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn show_routes_advertised<'life0, 'async_trait>(
&'life0 self,
to_peer: Option<IpNetwork>
) -> Pin<Box<dyn Future<Output = Result<Vec<LearnedRoute>, RPCError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn advertise_route<'life0, 'async_trait>(
&'life0 self,
route: RouteSpec
) -> Pin<Box<dyn Future<Output = Result<LearnedRoute, RPCError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn advertise_flow<'life0, 'async_trait>(
&'life0 self,
flow: FlowSpec
) -> Pin<Box<dyn Future<Output = Result<LearnedRoute, RPCError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}
Expand description
Client implementation for the Api
RPC API.