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