pub struct DatagramRemoteEndpoint<US: AsyncDatagramSocket> { /* private fields */ }
Expand description
RemoteEndpoint
implementation for DatagramLocalEndpoint
.
Trait Implementations§
Source§impl<US: Clone + AsyncDatagramSocket> Clone for DatagramRemoteEndpoint<US>where
US::SocketAddr: Clone,
impl<US: Clone + AsyncDatagramSocket> Clone for DatagramRemoteEndpoint<US>where
US::SocketAddr: Clone,
Source§fn clone(&self) -> DatagramRemoteEndpoint<US>
fn clone(&self) -> DatagramRemoteEndpoint<US>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<US: Debug + AsyncDatagramSocket> Debug for DatagramRemoteEndpoint<US>where
US::SocketAddr: Debug,
impl<US: Debug + AsyncDatagramSocket> Debug for DatagramRemoteEndpoint<US>where
US::SocketAddr: Debug,
Source§impl<US: AsyncDatagramSocket> RemoteEndpoint for DatagramRemoteEndpoint<US>
impl<US: AsyncDatagramSocket> RemoteEndpoint for DatagramRemoteEndpoint<US>
Source§type SocketAddr = <US as DatagramSocketTypes>::SocketAddr
type SocketAddr = <US as DatagramSocketTypes>::SocketAddr
The
SocketAddr
type to use with this local endpoint. This is usually
simply std::net::SocketAddr
, but may be different in some cases (like for CoAP-SMS
endpoints).Source§type InboundContext = DatagramRespondableInboundContext<<DatagramRemoteEndpoint<US> as RemoteEndpoint>::SocketAddr>
type InboundContext = DatagramRespondableInboundContext<<DatagramRemoteEndpoint<US> as RemoteEndpoint>::SocketAddr>
Type used by closure that is passed into
send()
, representing the context for the
response.Source§fn uri(&self) -> UriBuf
fn uri(&self) -> UriBuf
Returns a
UriBuf
describing the underlying destination of this remote endpoint.Source§fn scheme(&self) -> &'static str
fn scheme(&self) -> &'static str
Returns a string slice containing the scheme for this
RemoteEndpoint
.Source§fn remove_host_option(&mut self)
fn remove_host_option(&mut self)
Prevents this remote endpoint from including a
Uri-Host
option.Source§fn clone_using_rel_ref(&self, uri: &RelRef) -> Self
fn clone_using_rel_ref(&self, uri: &RelRef) -> Self
Creates a clone of this
RemoteEndpoint
with a different relative path.Source§fn send<'a, R, SD>(&'a self, send_desc: SD) -> BoxFuture<'a, Result<R, Error>>
fn send<'a, R, SD>(&'a self, send_desc: SD) -> BoxFuture<'a, Result<R, Error>>
Uses
send_desc
to send a request to the endpoint and path described by this
RemoteEndpoint
instance.Auto Trait Implementations§
impl<US> Freeze for DatagramRemoteEndpoint<US>
impl<US> RefUnwindSafe for DatagramRemoteEndpoint<US>
impl<US> Send for DatagramRemoteEndpoint<US>
impl<US> Sync for DatagramRemoteEndpoint<US>
impl<US> Unpin for DatagramRemoteEndpoint<US>
impl<US> UnwindSafe for DatagramRemoteEndpoint<US>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> RemoteEndpointExt for Twhere
T: RemoteEndpoint,
impl<T> RemoteEndpointExt for Twhere
T: RemoteEndpoint,
Source§fn ping(&self) -> BoxFuture<'_, Result<(), Error>>
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(())
.Source§fn send_as_stream<'a, R, SD>(&'a self, send_desc: SD) -> SendAsStream<'a, R>
fn send_as_stream<'a, R, SD>(&'a self, send_desc: SD) -> SendAsStream<'a, R>
Analogous to
LocalEndpointExt::send_as_stream
, except using this RemoteEndpoint
for
the destination SocketAddr and path.Source§fn send_to_as_stream<'a, R, SD, UF>(
&'a self,
path: UF,
send_desc: SD,
) -> SendAsStream<'a, R>
fn send_to_as_stream<'a, R, SD, UF>( &'a self, path: UF, send_desc: SD, ) -> SendAsStream<'a, R>
Analogous to
LocalEndpointExt::send_as_stream
, except using this RemoteEndpoint
for
the destination SocketAddr and using a path relative to this RemoteEndpoint
.