Struct ntp_proto::PeerSnapshot
source · pub struct PeerSnapshot {
pub peer_id: ReferenceId,
pub our_id: ReferenceId,
pub poll_interval: PollInterval,
pub reach: Reach,
pub stratum: u8,
pub reference_id: ReferenceId,
}Fields§
§peer_id: ReferenceId§our_id: ReferenceId§poll_interval: PollInterval§reach: Reach§stratum: u8§reference_id: ReferenceIdImplementations§
source§impl PeerSnapshot
impl PeerSnapshot
pub fn accept_synchronization( &self, local_stratum: u8 ) -> Result<(), AcceptSynchronizationError>
pub fn from_peer(peer: &Peer) -> Self
Trait Implementations§
source§impl Clone for PeerSnapshot
impl Clone for PeerSnapshot
source§fn clone(&self) -> PeerSnapshot
fn clone(&self) -> PeerSnapshot
Returns a copy 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 more