#[repr(C)]pub struct NT_ConnectionInfo {
pub remote_id: WPI_String,
pub remote_ip: WPI_String,
pub remote_port: u32,
pub last_update: u64,
pub protocol_version: u32,
}Expand description
NetworkTables Connection Information
Fields§
§remote_id: WPI_StringThe remote identifier (as set on the remote node by NT_StartClient4().
remote_ip: WPI_StringThe IP address of the remote node.
remote_port: u32The port number of the remote node.
last_update: u64The last time any update was received from the remote node (same scale as returned by nt::Now()).
protocol_version: u32The protocol version being used for this connection. This in protocol layer format, so 0x0200 = 2.0, 0x0300 = 3.0).
Trait Implementations§
Source§impl Clone for NT_ConnectionInfo
impl Clone for NT_ConnectionInfo
Source§fn clone(&self) -> NT_ConnectionInfo
fn clone(&self) -> NT_ConnectionInfo
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_ConnectionInfo
impl Debug for NT_ConnectionInfo
Source§impl Hash for NT_ConnectionInfo
impl Hash for NT_ConnectionInfo
impl Copy for NT_ConnectionInfo
Auto Trait Implementations§
impl Freeze for NT_ConnectionInfo
impl RefUnwindSafe for NT_ConnectionInfo
impl !Send for NT_ConnectionInfo
impl !Sync for NT_ConnectionInfo
impl Unpin for NT_ConnectionInfo
impl UnwindSafe for NT_ConnectionInfo
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