Trait xstack_circuit::DCUtRRpc

source ·
pub trait DCUtRRpc:
    AsyncRead
    + AsyncWrite
    + Unpin {
    // Provided methods
    fn dcutr_send_connect(
        self,
        observed_addrs: &[Multiaddr],
    ) -> impl Future<Output = Result<()>>
       where Self: Sized { ... }
    fn dcutr_recv_connect(
        self,
        max_recv_len: usize,
    ) -> impl Future<Output = Result<Vec<Multiaddr>>>
       where Self: Sized { ... }
    fn dcutr_send_sync(self) -> impl Future<Output = Result<()>>
       where Self: Sized { ... }
    fn dcutr_recv_sync(
        self,
        max_recv_len: usize,
    ) -> impl Future<Output = Result<()>>
       where Self: Sized { ... }
}
Expand description

An extension trait for DCUtR protocol.

Provided Methods§

source

fn dcutr_send_connect( self, observed_addrs: &[Multiaddr], ) -> impl Future<Output = Result<()>>
where Self: Sized,

Send a DCUtR Connect message via this stream.

source

fn dcutr_recv_connect( self, max_recv_len: usize, ) -> impl Future<Output = Result<Vec<Multiaddr>>>
where Self: Sized,

Recv a DCUtR Connect message via this stream.

source

fn dcutr_send_sync(self) -> impl Future<Output = Result<()>>
where Self: Sized,

Send a DCUtR Sync message via this stream.

source

fn dcutr_recv_sync( self, max_recv_len: usize, ) -> impl Future<Output = Result<()>>
where Self: Sized,

Recv a DCUtR Sync message via this stream.

Implementors§

source§

impl<S> DCUtRRpc for S
where S: AsyncRead + AsyncWrite + Unpin,