Struct NullRespondableInboundContext

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

Trait Implementations§

Source§

impl Debug for NullRespondableInboundContext
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 NullRespondableInboundContext

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.
Source§

impl RespondableInboundContext for NullRespondableInboundContext

Source§

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

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.
Source§

fn respond<F>(&self, _msg_gen: F) -> Result<(), Error>
where F: Fn(&mut dyn MessageWrite) -> Result<(), Error>,

Responds to this inbound request using a message generated from msg_gen. The msg_id and msg_token fields will be automatically populated. This method will return the value returned by msg_gen.

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