pub struct NullInboundContext
where
Self: Send + Sync;
Expand description
Concrete instance of LocalEndpoint::InboundContext
for NullLocalEndpoint
.
Trait Implementations§
Source§impl Debug for NullInboundContext
impl Debug for NullInboundContext
Source§impl InboundContext for NullInboundContext
impl InboundContext for NullInboundContext
Source§type SocketAddr = SocketAddr
type SocketAddr = SocketAddr
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.
Auto Trait Implementations§
impl Freeze for NullInboundContext
impl RefUnwindSafe for NullInboundContext
impl Send for NullInboundContext
impl Sync for NullInboundContext
impl Unpin for NullInboundContext
impl UnwindSafe for NullInboundContext
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