pub struct EventConnectionObservation {
pub state: EventConnectionState,
pub reconnect_attempt: u32,
pub backoff: Duration,
}Expand description
Connection lifecycle observation emitted by a subscription supervisor.
Fields§
§state: EventConnectionStateCurrent connection state.
reconnect_attempt: u32One-based reconnect attempt number, or zero for the first connection.
backoff: DurationBackoff selected for the next reconnect attempt.
Trait Implementations§
Source§impl Clone for EventConnectionObservation
impl Clone for EventConnectionObservation
Source§fn clone(&self) -> EventConnectionObservation
fn clone(&self) -> EventConnectionObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventConnectionObservation
impl Debug for EventConnectionObservation
Source§impl PartialEq for EventConnectionObservation
impl PartialEq for EventConnectionObservation
Source§fn eq(&self, other: &EventConnectionObservation) -> bool
fn eq(&self, other: &EventConnectionObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EventConnectionObservation
impl Eq for EventConnectionObservation
impl StructuralPartialEq for EventConnectionObservation
Auto Trait Implementations§
impl Freeze for EventConnectionObservation
impl RefUnwindSafe for EventConnectionObservation
impl Send for EventConnectionObservation
impl Sync for EventConnectionObservation
impl Unpin for EventConnectionObservation
impl UnsafeUnpin for EventConnectionObservation
impl UnwindSafe for EventConnectionObservation
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