[][src]Trait async_coap::RemoteEndpointExt

pub trait RemoteEndpointExt: RemoteEndpoint {
    fn ping(&self) -> BoxFuture<Result<(), Error>> { ... }
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
, { ... }
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>
, { ... } }

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, 

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>, 

Analogous to LocalEndpointExt::send_as_stream, except using this RemoteEndpoint for the destination SocketAddr and using a path relative to this RemoteEndpoint.

Loading content...

Implementors

impl<T: RemoteEndpoint> RemoteEndpointExt for T[src]

Blanket implementation of RemoteEndpointExt for all RemoteEndpoint instances.

Loading content...