pub struct ConnectionStats {Show 13 fields
pub peer_id: String,
pub status: ConnectionStatus,
pub bootstrap_connections: u32,
pub direct_peers: u32,
pub relay_connections: u32,
pub active_transports: Vec<String>,
pub protocols: Vec<String>,
pub connected_peers: Vec<String>,
pub room_peers: Vec<String>,
pub peer_transports: HashMap<String, Vec<String>>,
pub peer_addresses: HashMap<String, Vec<String>>,
pub circuit_address: Option<String>,
pub web_rtc_address: Option<String>,
}Fields§
§peer_id: String§status: ConnectionStatus§bootstrap_connections: u32§direct_peers: u32§relay_connections: u32§active_transports: Vec<String>§protocols: Vec<String>§connected_peers: Vec<String>§room_peers: Vec<String>§peer_transports: HashMap<String, Vec<String>>§peer_addresses: HashMap<String, Vec<String>>§circuit_address: Option<String>§web_rtc_address: Option<String>Trait Implementations§
Source§impl Clone for ConnectionStats
impl Clone for ConnectionStats
Source§fn clone(&self) -> ConnectionStats
fn clone(&self) -> ConnectionStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionStats
impl Debug for ConnectionStats
Source§impl PartialEq for ConnectionStats
impl PartialEq for ConnectionStats
impl StructuralPartialEq for ConnectionStats
Auto Trait Implementations§
impl Freeze for ConnectionStats
impl RefUnwindSafe for ConnectionStats
impl Send for ConnectionStats
impl Sync for ConnectionStats
impl Unpin for ConnectionStats
impl UnwindSafe for ConnectionStats
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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