pub struct Unmatched {
pub response: Response,
pub source: SocketAddr,
pub transport: TransportKind,
}Expand description
A response that matched no client transaction (RFC 3261 §16.7).
A user agent has nothing to do with one of these and is right to ignore it: it either answers a request this endpoint did not send, or it arrived after its transaction was already gone. A forwarding element is in the opposite position — §16.7 step 1 requires a stateful proxy that finds no response context to “forward the response statelessly”, which it cannot do if the response never reaches it.
Delivered only to a caller that asked, through Handle::watch_unmatched. Nothing is allocated
and nothing changes for an endpoint that never asks.
Fields§
§response: ResponseThe response itself, unaltered.
source: SocketAddrWhere it came from.
transport: TransportKindWhich transport carried it.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Unmatched
impl RefUnwindSafe for Unmatched
impl Send for Unmatched
impl Sync for Unmatched
impl Unpin for Unmatched
impl UnsafeUnpin for Unmatched
impl UnwindSafe for Unmatched
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more