Struct NullInboundContext

Source
pub struct NullInboundContext
where
    Self: Send + Sync;
Expand description

Trait Implementations§

Source§

impl Debug for NullInboundContext
where Self: Send + Sync,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl InboundContext for NullInboundContext

Source§

type SocketAddr = SocketAddr

The SocketAddr type from the associated LocalEndpoint.
Source§

fn remote_socket_addr(&self) -> Self::SocketAddr

Returns a copy of the remote address of the inbound message.
Source§

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

Returns a reference to a MessageRead trait to inspect the content of the inbound message.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V