Struct wgctrl_rs::PeerInfo [−][src]
pub struct PeerInfo { pub config: PeerConfig, pub stats: PeerStats, }
Represents the complete status of a peer.
This struct simply combines PeerInfo
and PeerStats
to represent all available information about a peer.
Fields
config: PeerConfig
stats: PeerStats
Trait Implementations
impl Debug for PeerInfo
[src]
impl Debug for PeerInfo
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for PeerInfo
[src]
impl PartialEq for PeerInfo
fn eq(&self, other: &PeerInfo) -> bool
[src]
fn eq(&self, other: &PeerInfo) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PeerInfo) -> bool
[src]
fn ne(&self, other: &PeerInfo) -> bool
This method tests for !=
.
impl Eq for PeerInfo
[src]
impl Eq for PeerInfo
impl Clone for PeerInfo
[src]
impl Clone for PeerInfo
fn clone(&self) -> PeerInfo
[src]
fn clone(&self) -> PeerInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> From<&'a wg_peer> for PeerInfo
[src]
impl<'a> From<&'a wg_peer> for PeerInfo