Struct insteon_serial::message::LinkResult
source · pub struct LinkResult { /* private fields */ }
Expand description
Encodes the result of a linking attempt.
Implementations§
source§impl LinkResult
impl LinkResult
sourcepub fn is_responder(&self) -> bool
pub fn is_responder(&self) -> bool
Identical to is_slave
, but using Insteon’s nomenclature.
sourcepub fn is_controller(&self) -> bool
pub fn is_controller(&self) -> bool
Identical to is_master
, but using Insteon’s nomenclature.
sourcepub fn category(&self) -> Option<u8>
pub fn category(&self) -> Option<u8>
The category of the slave (responder) device that was linked.
Notes
This byte is just junk when the modem is not the master (controller), so None
is
returned in the case that the modem is the slave (responder).
sourcepub fn subcategory(&self) -> Option<u8>
pub fn subcategory(&self) -> Option<u8>
The subcategory of the slave (responder) device that was linked.
Notes
This byte is just junk when the modem is not the master (controller), so None
is
returned in the case that the modem is the slave (responder).
Trait Implementations§
source§impl Clone for LinkResult
impl Clone for LinkResult
source§fn clone(&self) -> LinkResult
fn clone(&self) -> LinkResult
Returns a copy 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 more