pub struct DatagramRespondableInboundContext<SA>where
Self: Send,{ /* private fields */ }
Expand description
Concrete instance of LocalEndpoint::RespondableInboundContext
for DatagramLocalEndpoint
.
Trait Implementations§
Source§impl<SA> Debug for DatagramRespondableInboundContext<SA>
impl<SA> Debug for DatagramRespondableInboundContext<SA>
Source§impl<SA: SocketAddrExt> InboundContext for DatagramRespondableInboundContext<SA>
impl<SA: SocketAddrExt> InboundContext for DatagramRespondableInboundContext<SA>
Source§type SocketAddr = SA
type SocketAddr = SA
The
SocketAddr
type from the associated LocalEndpoint
.Source§fn remote_socket_addr(&self) -> Self::SocketAddr
fn remote_socket_addr(&self) -> Self::SocketAddr
Returns a copy of the remote address of the inbound message.
Source§fn is_dupe(&self) -> bool
fn is_dupe(&self) -> bool
Indicates if the endpoint thinks this message is a duplicate. This is used
for non-idempotent methods (like POST) to determine if the operation should
have real effects or if it should just go through the motions without changing
state. Duplicates are generally only passed through when the underlying transport
doesn’t support support storing sent replies for this purpose.
Source§fn message(&self) -> &dyn MessageRead
fn message(&self) -> &dyn MessageRead
Returns a reference to a MessageRead trait to inspect the content
of the inbound message.
Source§impl<UA: SocketAddrExt> RespondableInboundContext for DatagramRespondableInboundContext<UA>
impl<UA: SocketAddrExt> RespondableInboundContext for DatagramRespondableInboundContext<UA>
Source§fn is_multicast(&self) -> bool
fn is_multicast(&self) -> bool
Indicates if the inbound request was a multicast request or not. Multicast
requests have additional response timing requirements in order to avoid
congestion.
Source§fn is_fake(&self) -> bool
fn is_fake(&self) -> bool
Indicates if this inbound request is from a real inbound request or if it
is a fake request that is being generated internally to solicit a response.
Fake requests are only generated for the
GET
method.Auto Trait Implementations§
impl<SA> !Freeze for DatagramRespondableInboundContext<SA>
impl<SA> !RefUnwindSafe for DatagramRespondableInboundContext<SA>
impl<SA> Send for DatagramRespondableInboundContext<SA>
impl<SA> !Sync for DatagramRespondableInboundContext<SA>
impl<SA> Unpin for DatagramRespondableInboundContext<SA>where
SA: Unpin,
impl<SA> UnwindSafe for DatagramRespondableInboundContext<SA>where
SA: UnwindSafe,
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