pub struct RtimeConfig {
pub general: GeneralConfig,
pub clock: ClockConfig,
pub ntp: NtpConfig,
pub ptp: PtpConfig,
pub metrics: MetricsConfig,
pub management: ManagementConfig,
}Fields§
§general: GeneralConfig§clock: ClockConfig§ntp: NtpConfig§ptp: PtpConfig§metrics: MetricsConfig§management: ManagementConfigImplementations§
Source§impl RtimeConfig
impl RtimeConfig
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validate configuration values after deserialization. Returns an error describing the first invalid value found.
Trait Implementations§
Source§impl Clone for RtimeConfig
impl Clone for RtimeConfig
Source§fn clone(&self) -> RtimeConfig
fn clone(&self) -> RtimeConfig
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 RtimeConfig
impl Debug for RtimeConfig
Source§impl Default for RtimeConfig
impl Default for RtimeConfig
Source§fn default() -> RtimeConfig
fn default() -> RtimeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RtimeConfig
impl<'de> Deserialize<'de> for RtimeConfig
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
Auto Trait Implementations§
impl Freeze for RtimeConfig
impl RefUnwindSafe for RtimeConfig
impl Send for RtimeConfig
impl Sync for RtimeConfig
impl Unpin for RtimeConfig
impl UnsafeUnpin for RtimeConfig
impl UnwindSafe for RtimeConfig
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