Struct ntp_proto::StepThreshold
source · pub struct StepThreshold {
pub forward: Option<NtpDuration>,
pub backward: Option<NtpDuration>,
}Fields§
§forward: Option<NtpDuration>§backward: Option<NtpDuration>Implementations§
source§impl StepThreshold
impl StepThreshold
pub fn is_within(&self, duration: NtpDuration) -> bool
Trait Implementations§
source§impl Clone for StepThreshold
impl Clone for StepThreshold
source§fn clone(&self) -> StepThreshold
fn clone(&self) -> StepThreshold
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 StepThreshold
impl Debug for StepThreshold
source§impl Default for StepThreshold
impl Default for StepThreshold
source§fn default() -> StepThreshold
fn default() -> StepThreshold
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StepThreshold
impl<'de> Deserialize<'de> for StepThreshold
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for StepThreshold
Auto Trait Implementations§
impl RefUnwindSafe for StepThreshold
impl Send for StepThreshold
impl Sync for StepThreshold
impl Unpin for StepThreshold
impl UnwindSafe for StepThreshold
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