pub struct ConnectionEstablishmentFailed<'a> { /* private fields */ }Expand description
A terminal failure before a connection became available for pool dispatch.
Implementations§
Source§impl<'a> ConnectionEstablishmentFailed<'a>
impl<'a> ConnectionEstablishmentFailed<'a>
Sourcepub fn establishment(&self) -> &'a ConnectionEstablishmentInfo
pub fn establishment(&self) -> &'a ConnectionEstablishmentInfo
Returns the failed establishment’s identity and routing context.
Sourcepub fn stats(&self) -> &'a ConnectionEstablishmentStats
pub fn stats(&self) -> &'a ConnectionEstablishmentStats
Returns measurements collected before the failure.
Sourcepub fn stage(&self) -> ConnectionEstablishmentStage
pub fn stage(&self) -> ConnectionEstablishmentStage
Returns the stage that terminated the establishment.
Sourcepub fn remote_addr(&self) -> Option<SocketAddr>
pub fn remote_addr(&self) -> Option<SocketAddr>
Returns the connector-reported remote address, when transport completed before a later stage failed.
Sourcepub fn protocol(&self) -> Option<ConnectionProtocol>
pub fn protocol(&self) -> Option<ConnectionProtocol>
Returns the selected HTTP protocol, when selection completed.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ConnectionEstablishmentFailed<'a>
impl<'a> !UnwindSafe for ConnectionEstablishmentFailed<'a>
impl<'a> Freeze for ConnectionEstablishmentFailed<'a>
impl<'a> Send for ConnectionEstablishmentFailed<'a>
impl<'a> Sync for ConnectionEstablishmentFailed<'a>
impl<'a> Unpin for ConnectionEstablishmentFailed<'a>
impl<'a> UnsafeUnpin for ConnectionEstablishmentFailed<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 moreCreates a shared type from an unshared type.