pub struct SessionManagerStats {
pub total_sessions: usize,
pub active_sessions: usize,
pub total_blocks_requested: u64,
pub total_blocks_received: u64,
pub total_blocks_failed: u64,
pub total_bytes_received: u64,
pub total_pending_interests: u64,
pub success_rate: f64,
}Expand description
Statistics about the session manager
Fields§
§total_sessions: usizeTotal number of sessions
active_sessions: usizeNumber of active sessions
total_blocks_requested: u64Total blocks requested across all sessions
total_blocks_received: u64Total blocks received across all sessions
total_blocks_failed: u64Total blocks failed across all sessions
total_bytes_received: u64Total bytes received across all sessions
total_pending_interests: u64Total pending interests across active sessions
success_rate: f64Success rate as percentage
Trait Implementations§
Source§impl Clone for SessionManagerStats
impl Clone for SessionManagerStats
Source§impl Debug for SessionManagerStats
impl Debug for SessionManagerStats
Auto Trait Implementations§
impl Freeze for SessionManagerStats
impl RefUnwindSafe for SessionManagerStats
impl Send for SessionManagerStats
impl Sync for SessionManagerStats
impl Unpin for SessionManagerStats
impl UnsafeUnpin for SessionManagerStats
impl UnwindSafe for SessionManagerStats
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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