pub struct ChannelLiveness {
pub last_send_at_ms: Option<i64>,
pub last_send_ok: Option<bool>,
pub last_error: Option<String>,
}Expand description
A point-in-time snapshot of one channel’s outbound-send health, recorded by
the send path (U3) and read by messaging.status (U2). All fields are
Option/bool so a never-sent channel reports cleanly (no send recorded).
Fields§
§last_send_at_ms: Option<i64>Unix-epoch milliseconds of the most recent send ATTEMPT that produced a
recorded outcome (success or failure). None until the first send.
last_send_ok: Option<bool>Whether the most recent recorded send succeeded. None until the first
send; Some(false) for BOTH a hard error and a soft sent:false.
last_error: Option<String>Human-readable reason for the most recent FAILURE (hard error string or
the soft sent:false reason). None when the last send succeeded or no
send has happened. NOT cleared to None on success — instead a success
sets last_send_ok:true and clears it; see Self::record_success.
Trait Implementations§
Source§impl Clone for ChannelLiveness
impl Clone for ChannelLiveness
Source§fn clone(&self) -> ChannelLiveness
fn clone(&self) -> ChannelLiveness
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChannelLiveness
impl Debug for ChannelLiveness
Source§impl Default for ChannelLiveness
impl Default for ChannelLiveness
Source§fn default() -> ChannelLiveness
fn default() -> ChannelLiveness
impl Eq for ChannelLiveness
Source§impl PartialEq for ChannelLiveness
impl PartialEq for ChannelLiveness
impl StructuralPartialEq for ChannelLiveness
Auto Trait Implementations§
impl Freeze for ChannelLiveness
impl RefUnwindSafe for ChannelLiveness
impl Send for ChannelLiveness
impl Sync for ChannelLiveness
impl Unpin for ChannelLiveness
impl UnsafeUnpin for ChannelLiveness
impl UnwindSafe for ChannelLiveness
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> ⓘ
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> ⓘ
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