Enum nt::EntryType [−][src]
pub enum EntryType { Boolean, Double, String, RawData, BooleanArray, DoubleArray, StringArray, RPCDef, }
Corresponds to the type tag that NetworkTables presents prior to the corresponding EntryValue
Variants
Boolean
Represents a boolean entry value
Double
Represents a double entry value
String
Represents a string entry value
RawData
Represents a raw data entry value
BooleanArray
Represents a boolean array entry value
DoubleArray
Represents a double array entry value
StringArray
Represents a string array entry value
RPCDef
Represents an RPC definition entry value
Methods
impl EntryType
[src]
impl EntryType
pub fn get_entry(&self, buf: &mut Buf) -> (EntryValue, usize)
[src]
pub fn get_entry(&self, buf: &mut Buf) -> (EntryValue, usize)
Deserializes an EntryValue
of type self
from the given buf
Trait Implementations
impl Debug for EntryType
[src]
impl Debug for EntryType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for EntryType
[src]
impl PartialEq for EntryType
fn eq(&self, other: &EntryType) -> bool
[src]
fn eq(&self, other: &EntryType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Clone for EntryType
[src]
impl Clone for EntryType
fn clone(&self) -> EntryType
[src]
fn clone(&self) -> EntryType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl ClientMessage for EntryType
[src]
impl ClientMessage for EntryType
impl ServerMessage for EntryType
[src]
impl ServerMessage for EntryType
fn decode(buf: &mut Buf) -> (Option<Self>, usize)
[src]
fn decode(buf: &mut Buf) -> (Option<Self>, usize)
Attempts to decode Self
from the given buf
Returns Some if the given buf
was a valid NT packet Returns None if the given buf
was malformed, or otherwise invalid Read more
impl<T> From<T> for EntryType where
T: AsRef<str>,
[src]
impl<T> From<T> for EntryType where
T: AsRef<str>,