pub struct ServerStats {
pub latency_ms: Option<f64>,
pub mbps: Option<f64>,
pub best_mbps: Option<f64>,
pub uploads: u64,
pub bytes_total: u64,
pub last_ok_at: Option<i64>,
pub last_fail_at: Option<i64>,
pub last_fail_kind: Option<String>,
pub recent: Vec<Sample>,
}Fields§
§latency_ms: Option<f64>§mbps: Option<f64>§best_mbps: Option<f64>§uploads: u64§bytes_total: u64§last_ok_at: Option<i64>§last_fail_at: Option<i64>§last_fail_kind: Option<String>§recent: Vec<Sample>Recent uploads, oldest first.
Trait Implementations§
Source§impl Clone for ServerStats
impl Clone for ServerStats
Source§impl Debug for ServerStats
impl Debug for ServerStats
Source§impl PartialEq for ServerStats
impl PartialEq for ServerStats
Source§impl Serialize for ServerStats
impl Serialize for ServerStats
impl StructuralPartialEq for ServerStats
Auto Trait Implementations§
impl Freeze for ServerStats
impl RefUnwindSafe for ServerStats
impl Send for ServerStats
impl Sync for ServerStats
impl Unpin for ServerStats
impl UnsafeUnpin for ServerStats
impl UnwindSafe for ServerStats
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> 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 more