pub struct DatasourceDisconnection {
pub source: String,
pub disconnect_time: DateTime<Utc>,
pub last_slot_before_disconnect: Slot,
pub first_slot_after_reconnect: Slot,
pub missed_slots: u64,
}Expand description
Metadata describing a datasource disconnection event.
Used for observability and gap detection in streaming sources.
Fields§
§source: String§disconnect_time: DateTime<Utc>§last_slot_before_disconnect: Slot§first_slot_after_reconnect: Slot§missed_slots: u64Number of slots missed during downtime.
Trait Implementations§
Source§impl Clone for DatasourceDisconnection
impl Clone for DatasourceDisconnection
Source§fn clone(&self) -> DatasourceDisconnection
fn clone(&self) -> DatasourceDisconnection
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 moreAuto Trait Implementations§
impl Freeze for DatasourceDisconnection
impl RefUnwindSafe for DatasourceDisconnection
impl Send for DatasourceDisconnection
impl Sync for DatasourceDisconnection
impl Unpin for DatasourceDisconnection
impl UnsafeUnpin for DatasourceDisconnection
impl UnwindSafe for DatasourceDisconnection
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,
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