#[non_exhaustive]pub enum ConnectionEvent<'a> {
EstablishmentFailed(ConnectionEstablishmentFailed<'a>),
Opened(ConnectionOpened<'a>),
LogicalClose(ConnectionLogicalClose<'a>),
PhysicalClose(ConnectionPhysicalClose<'a>),
}Expand description
One connection establishment or installed-lifetime observation.
Payload references are valid for the synchronous callback. Clone or copy the individual values needed after the callback returns.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EstablishmentFailed(ConnectionEstablishmentFailed<'a>)
An establishment ended without installing a connection.
Opened(ConnectionOpened<'a>)
An establishment installed a connection for dispatch.
LogicalClose(ConnectionLogicalClose<'a>)
An installed connection stopped accepting new dispatch.
PhysicalClose(ConnectionPhysicalClose<'a>)
The client released its root transport ownership.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ConnectionEvent<'a>
impl<'a> !UnwindSafe for ConnectionEvent<'a>
impl<'a> Freeze for ConnectionEvent<'a>
impl<'a> Send for ConnectionEvent<'a>
impl<'a> Sync for ConnectionEvent<'a>
impl<'a> Unpin for ConnectionEvent<'a>
impl<'a> UnsafeUnpin for ConnectionEvent<'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.