#[repr(C)]pub struct ScTimeSyncConfig {
pub flag: u8,
pub ip: [u8; 16],
}Fields§
§flag: u8!< 0: disable, 1: NTP, 2: PTP, only NTP needs the ip.
ip: [u8; 16]!< just for NTP.
Trait Implementations§
Source§impl Clone for ScTimeSyncConfig
impl Clone for ScTimeSyncConfig
Source§fn clone(&self) -> ScTimeSyncConfig
fn clone(&self) -> ScTimeSyncConfig
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 moreimpl Copy for ScTimeSyncConfig
Source§impl Debug for ScTimeSyncConfig
impl Debug for ScTimeSyncConfig
Source§impl Default for ScTimeSyncConfig
impl Default for ScTimeSyncConfig
Source§fn default() -> ScTimeSyncConfig
fn default() -> ScTimeSyncConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScTimeSyncConfig
impl RefUnwindSafe for ScTimeSyncConfig
impl Send for ScTimeSyncConfig
impl Sync for ScTimeSyncConfig
impl Unpin for ScTimeSyncConfig
impl UnsafeUnpin for ScTimeSyncConfig
impl UnwindSafe for ScTimeSyncConfig
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