#[repr(C)]pub struct NT_TimeSyncEventData {
pub serverTimeOffset: i64,
pub rtt2: i64,
pub valid: NT_Bool,
}
Expand description
NetworkTables time sync event data.
Fields§
§serverTimeOffset: i64
Offset between local time and server time, in microseconds. Add this value to local time to get the estimated equivalent server time.
rtt2: i64
Measured round trip time divided by 2, in microseconds.
valid: NT_Bool
If serverTimeOffset and RTT are valid. An event with this set to false is sent when the client disconnects.
Trait Implementations§
Source§impl Clone for NT_TimeSyncEventData
impl Clone for NT_TimeSyncEventData
Source§fn clone(&self) -> NT_TimeSyncEventData
fn clone(&self) -> NT_TimeSyncEventData
Returns a duplicate 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 NT_TimeSyncEventData
impl Debug for NT_TimeSyncEventData
Source§impl Hash for NT_TimeSyncEventData
impl Hash for NT_TimeSyncEventData
Source§impl PartialEq for NT_TimeSyncEventData
impl PartialEq for NT_TimeSyncEventData
impl Copy for NT_TimeSyncEventData
impl Eq for NT_TimeSyncEventData
impl StructuralPartialEq for NT_TimeSyncEventData
Auto Trait Implementations§
impl Freeze for NT_TimeSyncEventData
impl RefUnwindSafe for NT_TimeSyncEventData
impl Send for NT_TimeSyncEventData
impl Sync for NT_TimeSyncEventData
impl Unpin for NT_TimeSyncEventData
impl UnwindSafe for NT_TimeSyncEventData
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