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 moresource§impl Debug for PeerSnapshot
impl Debug for PeerSnapshot
impl Copy for PeerSnapshot
Auto Trait Implementations§
impl RefUnwindSafe for PeerSnapshot
impl Send for PeerSnapshot
impl Sync for PeerSnapshot
impl Unpin for PeerSnapshot
impl UnwindSafe for PeerSnapshot
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