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>, Error>> + 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>, Error>> + 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>, Error>> + 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>, Error>> + 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<Result<LearnedRoute, String>, Error>> + 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<Result<LearnedRoute, String>, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}
Expand description
Client implementation for the Api
RPC API.
Provided methods
fn show_peers<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<PeerSummary>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn show_peers<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<PeerSummary>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Invokes the RPC method show_peers
.
fn show_peer_detail<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<PeerDetail>, Error>> + 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>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Invokes the RPC method show_peer_detail
.
Invokes the RPC method show_routes_learned
.
Invokes the RPC method show_routes_advertised
.
Invokes the RPC method advertise_route
.