Struct ntp_proto::StateUpdate
source · pub struct StateUpdate<PeerID: Eq + Copy + Debug> {
pub time_snapshot: Option<TimeSnapshot>,
pub used_peers: Option<Vec<PeerID>>,
pub next_update: Option<NtpTimestamp>,
}Fields§
§time_snapshot: Option<TimeSnapshot>§used_peers: Option<Vec<PeerID>>§next_update: Option<NtpTimestamp>Trait Implementations§
source§impl<PeerID: Clone + Eq + Copy + Debug> Clone for StateUpdate<PeerID>
impl<PeerID: Clone + Eq + Copy + Debug> Clone for StateUpdate<PeerID>
source§fn clone(&self) -> StateUpdate<PeerID>
fn clone(&self) -> StateUpdate<PeerID>
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 moreAuto Trait Implementations§
impl<PeerID> RefUnwindSafe for StateUpdate<PeerID>where PeerID: RefUnwindSafe,
impl<PeerID> Send for StateUpdate<PeerID>where PeerID: Send,
impl<PeerID> Sync for StateUpdate<PeerID>where PeerID: Sync,
impl<PeerID> Unpin for StateUpdate<PeerID>where PeerID: Unpin,
impl<PeerID> UnwindSafe for StateUpdate<PeerID>where PeerID: UnwindSafe,
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