Struct sntpc::NtpContext
source · pub struct NtpContext<T: NtpTimestampGenerator> {
pub timestamp_gen: T,
}
Expand description
SNTP client context that contains of objects that may be required for client’s operation
Fields§
§timestamp_gen: T
Implementations§
source§impl<T: NtpTimestampGenerator + Copy> NtpContext<T>
impl<T: NtpTimestampGenerator + Copy> NtpContext<T>
Trait Implementations§
source§impl<T: Clone + NtpTimestampGenerator> Clone for NtpContext<T>
impl<T: Clone + NtpTimestampGenerator> Clone for NtpContext<T>
source§fn clone(&self) -> NtpContext<T>
fn clone(&self) -> NtpContext<T>
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 moreimpl<T: Copy + NtpTimestampGenerator> Copy for NtpContext<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for NtpContext<T>where
T: RefUnwindSafe,
impl<T> Send for NtpContext<T>where
T: Send,
impl<T> Sync for NtpContext<T>where
T: Sync,
impl<T> Unpin for NtpContext<T>where
T: Unpin,
impl<T> UnwindSafe for NtpContext<T>where
T: 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