Struct openzwave::value_classes::value_id::ValueID [] [src]

pub struct ValueID {
    // some fields omitted
}

Methods

impl ValueID
[src]

fn from_packed_id(home_id: u32, id: u64) -> ValueID

fn as_ozw_vid(&self) -> ValueID

fn from_values(home_id: u32, node_id: u8, genre: ValueGenre, command_class_id: u8, instance: u8, value_index: u8, value_type: ValueType) -> ValueID

fn get_controller(&self) -> Controller

fn get_node(&self) -> Node

fn get_home_id(&self) -> u32

fn get_node_id(&self) -> u8

fn get_genre(&self) -> ValueGenre

fn get_command_class_id(&self) -> u8

fn get_command_class(&self) -> Option<CommandClass>

fn get_instance(&self) -> u8

fn get_index(&self) -> u8

fn get_type(&self) -> ValueType

fn get_id(&self) -> u64

fn as_bool(&self) -> Result<bool>

fn as_byte(&self) -> Result<u8>

fn as_float(&self) -> Result<f32>

fn get_float_precision(&self) -> Result<u8>

fn as_int(&self) -> Result<i32>

fn as_short(&self) -> Result<i16>

fn as_string(&self) -> Result<String>

fn as_raw(&self) -> Result<Box<Vec<u8>>>

fn as_list(&self) -> Result<ValueList>

fn set_bool(&self, value: bool) -> Result<()>

fn set_byte(&self, value: u8) -> Result<()>

fn set_float(&self, value: f32) -> Result<()>

fn set_int(&self, value: i32) -> Result<()>

fn set_short(&self, value: i16) -> Result<()>

fn set_string(&self, value: &str) -> Result<()>

fn set_raw(&self, value: &Vec<u8>) -> Result<()>

fn set_list_selection_string(&self, value: &str) -> Result<()>

fn get_label(&self) -> String

fn set_label(&self, str: &str) -> Result<()>

fn get_units(&self) -> String

fn set_units(&self, str: &str) -> Result<()>

fn get_help(&self) -> String

fn set_help(&self, str: &str) -> Result<()>

fn get_min(&self) -> i32

fn get_max(&self) -> i32

fn is_read_only(&self) -> bool

fn is_write_only(&self) -> bool

fn is_set(&self) -> bool

fn is_polled(&self) -> bool

Trait Implementations

impl Hash for ValueID
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Copy for ValueID
[src]

impl Clone for ValueID
[src]

fn clone(&self) -> ValueID

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl PartialEq for ValueID
[src]

fn eq(&self, __arg_0: &ValueID) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ValueID) -> bool

This method tests for !=.

impl Eq for ValueID
[src]

impl Display for ValueID
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Debug for ValueID
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialOrd for ValueID
[src]

fn partial_cmp(&self, other: &ValueID) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, other: &Rhs) -> bool
1.0.0

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, other: &Rhs) -> bool
1.0.0

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, other: &Rhs) -> bool
1.0.0

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, other: &Rhs) -> bool
1.0.0

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for ValueID
[src]

fn cmp(&self, other: &ValueID) -> Ordering

This method returns an Ordering between self and other. Read more