Skip to main content

HasTransportApi

Trait HasTransportApi 

pub trait HasTransportApi {
    type Transport: TransportOperations;

    // Required methods
    fn transport(&self) -> &Self::Transport;
    fn status(&self) -> ComponentStatus;
}
Expand description

Provides access to transport-level operations (ping, peer observations).

Required Associated Types§

type Transport: TransportOperations

The concrete TransportOperations implementation.

Required Methods§

fn transport(&self) -> &Self::Transport

Returns a reference to the transport API.

fn status(&self) -> ComponentStatus

Reports the current health of the transport component.

Implementations on Foreign Types§

§

impl<'a, T> HasTransportApi for &'a T
where T: 'a + HasTransportApi + ?Sized,

§

impl<T> HasTransportApi for Arc<T>
where T: HasTransportApi + ?Sized,

Implementors§

Source§

impl<Chain, Graph, Net, TMgr> HasTransportApi for Hopr<Chain, Graph, Net, TMgr>
where Chain: HoprChainApi + Clone + Send + Sync + 'static, Graph: HoprGraphApi<HoprNodeId = OffchainPublicKey> + Clone + Send + Sync + 'static, <Graph as NetworkGraphTraverse>::Observed: EdgeObservableRead + Send + 'static, <Graph as NetworkGraphWrite>::Observed: EdgeObservableWrite + Send, Net: NetworkView + NetworkStreamControl + Send + Sync + Clone + 'static, TMgr: Send + Sync + 'static,

Source§

type Transport = HoprTransport<Chain, Graph, Net>