[][src]Struct nt::NetworkTables

pub struct NetworkTables { /* fields omitted */ }

Core struct representing a connection to a NetworkTables server

Methods

impl NetworkTables
[src]

Performs the initial connection process to the given target. Assumes that target is a valid, running NetworkTables server. Returns a new NetworkTables once a connection has been established. If any errors are returned when trying to perform the connection, returns an Err

Returns a handle to this client Allows indirect termination of the remote connection without moving self into closures

Initiates an RPC request for the given id. cb will be called with the response body when the server has processed the request and returned

Registers the given closure cb as a callback to be called for CallbackType action When action occurs due to either network or user events, all callbacks registered for that type will be called

Returns a clone of all the entries this client currently knows of.

Returns an Entry for the given id The underlying value of the entry cannot be mutated.

Returns an EntryMut for the given id The underlying value of the entry can be mutated through the given EntryMut

Creates a new entry with data contained in data. Returns the id of the new entry, once the server has assigned it

Attempts to find an entry with the name name

Returns Some with the id if an entry exists with that name. Returns None if there isn't an entry with that name

Find all the entries of type ty Returns a Vec of entry ids

Deletes all entries from the server this client is currently connected to Must be used with care. Cannot be undone

Checks if the client is actively connected to an NT server true if the 3-way handshake has been completed, and the client is fully synchronized

Trait Implementations

impl Drop for NetworkTables
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T