pub struct TorStats {
pub circuits_created: usize,
pub active_circuits: usize,
pub streams_created: usize,
pub active_streams: usize,
pub total_bytes_sent: u64,
pub total_bytes_received: u64,
pub hidden_services: usize,
pub connection_failures: usize,
pub avg_circuit_build_time_ms: f64,
}Expand description
Statistics for Tor operations
Fields§
§circuits_created: usizeTotal circuits created
active_circuits: usizeCurrently active circuits
streams_created: usizeTotal streams created
active_streams: usizeCurrently active streams
total_bytes_sent: u64Total bytes sent through Tor
total_bytes_received: u64Total bytes received through Tor
Number of hidden services hosted
connection_failures: usizeTotal connection failures
avg_circuit_build_time_ms: f64Average circuit build time (ms)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TorStats
impl RefUnwindSafe for TorStats
impl Send for TorStats
impl Sync for TorStats
impl Unpin for TorStats
impl UnwindSafe for TorStats
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,
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