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§
sourcefn dcutr_send_connect(
self,
observed_addrs: &[Multiaddr],
) -> impl Future<Output = Result<()>>where
Self: Sized,
fn dcutr_send_connect(
self,
observed_addrs: &[Multiaddr],
) -> impl Future<Output = Result<()>>where
Self: Sized,
Send a DCUtR Connect message via this stream.
sourcefn dcutr_recv_connect(
self,
max_recv_len: usize,
) -> impl Future<Output = Result<Vec<Multiaddr>>>where
Self: Sized,
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.