#[non_exhaustive]pub struct AccurateTimeConfig {
pub enable_ptp_kvm_time_sync: Option<bool>,
/* private fields */
}Expand description
AccurateTimeConfig contains configuration for the accurate time synchronization feature.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_ptp_kvm_time_sync: Option<bool>Enables enhanced time synchronization using PTP-KVM.
Implementations§
Source§impl AccurateTimeConfig
impl AccurateTimeConfig
Sourcepub fn set_enable_ptp_kvm_time_sync<T>(self, v: T) -> Self
pub fn set_enable_ptp_kvm_time_sync<T>(self, v: T) -> Self
Sets the value of enable_ptp_kvm_time_sync.
§Example
ⓘ
let x = AccurateTimeConfig::new().set_enable_ptp_kvm_time_sync(true);Sourcepub fn set_or_clear_enable_ptp_kvm_time_sync<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_ptp_kvm_time_sync<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_ptp_kvm_time_sync.
§Example
ⓘ
let x = AccurateTimeConfig::new().set_or_clear_enable_ptp_kvm_time_sync(Some(false));
let x = AccurateTimeConfig::new().set_or_clear_enable_ptp_kvm_time_sync(None::<bool>);Trait Implementations§
Source§impl Clone for AccurateTimeConfig
impl Clone for AccurateTimeConfig
Source§fn clone(&self) -> AccurateTimeConfig
fn clone(&self) -> AccurateTimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AccurateTimeConfig
impl Debug for AccurateTimeConfig
Source§impl Default for AccurateTimeConfig
impl Default for AccurateTimeConfig
Source§fn default() -> AccurateTimeConfig
fn default() -> AccurateTimeConfig
Returns the “default value” for a type. Read more
Source§impl Message for AccurateTimeConfig
impl Message for AccurateTimeConfig
Source§impl PartialEq for AccurateTimeConfig
impl PartialEq for AccurateTimeConfig
Source§fn eq(&self, other: &AccurateTimeConfig) -> bool
fn eq(&self, other: &AccurateTimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccurateTimeConfig
Auto Trait Implementations§
impl Freeze for AccurateTimeConfig
impl RefUnwindSafe for AccurateTimeConfig
impl Send for AccurateTimeConfig
impl Sync for AccurateTimeConfig
impl Unpin for AccurateTimeConfig
impl UnsafeUnpin for AccurateTimeConfig
impl UnwindSafe for AccurateTimeConfig
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