#[repr(C)]pub struct NT_Event {
pub listener: NT_Handle,
pub flags: u32,
pub data: NT_EventData,
}Expand description
NetworkTables event
Fields§
§listener: NT_HandleListener that triggered this event.
flags: u32Event flags (NT_EventFlags). Also indicates the data included with the event:
- NT_EVENT_CONNECTED or NT_EVENT_DISCONNECTED: connInfo
- NT_EVENT_PUBLISH, NT_EVENT_UNPUBLISH, or NT_EVENT_PROPERTIES: topicInfo
- NT_EVENT_VALUE_REMOTE, NT_NOTIFY_VALUE_LOCAL: valueData
- NT_EVENT_LOGMESSAGE: logMessage
- NT_EVENT_TIMESYNC: timeSyncData
data: NT_EventDataEvent data; content depends on flags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NT_Event
impl RefUnwindSafe for NT_Event
impl !Send for NT_Event
impl !Sync for NT_Event
impl Unpin for NT_Event
impl UnwindSafe for NT_Event
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