[−][src]Trait async_coap::RemoteEndpointExt
Extension trait which implements additional helper methods.
Provided methods
fn ping(&self) -> BoxFuture<Result<(), Error>>
Sends an application-level ping to to one or more addresses specified by dest
.
The first response received causes the future to emit Ok(())
.
fn send_as_stream<'a, R, SD>(&'a self, send_desc: SD) -> SendAsStream<'a, R> where
SD: SendDesc<Self::InboundContext, R> + 'a,
R: Send + 'a,
SD: SendDesc<Self::InboundContext, R> + 'a,
R: Send + 'a,
Analogous to LocalEndpointExt::send_as_stream
, except using this RemoteEndpoint
for
the destination SocketAddr and path.
fn send_to_as_stream<'a, R, SD, UF>(
&'a self,
path: UF,
send_desc: SD
) -> SendAsStream<'a, R> where
SD: SendDesc<Self::InboundContext, R> + 'a,
R: Send + 'a,
UF: AsRef<RelRef>,
&'a self,
path: UF,
send_desc: SD
) -> SendAsStream<'a, R> where
SD: SendDesc<Self::InboundContext, R> + 'a,
R: Send + 'a,
UF: AsRef<RelRef>,
Analogous to LocalEndpointExt::send_as_stream
, except using this RemoteEndpoint
for
the destination SocketAddr and using a path relative to this RemoteEndpoint
.
Implementors
impl<T: RemoteEndpoint> RemoteEndpointExt for T
[src]
Blanket implementation of RemoteEndpointExt
for all RemoteEndpoint
instances.