pub struct ZWaveBuilder { /* private fields */ }Expand description
Builder for Z-Wave frames.
Produces either ACK frames (10 bytes, no payload) or REQ frames (10 + payload bytes) with auto-computed CRC.
Frame layout: homeId(4) + src(1) + frameCtrl(1) + beamSeqn(1) + length(1) + dst(1) + [payload] + crc(1)
Implementations§
Source§impl ZWaveBuilder
impl ZWaveBuilder
Sourcepub fn speedmodified(self, v: bool) -> Self
pub fn speedmodified(self, v: bool) -> Self
Set the speed modified flag (bit 4 of frame control).
Sourcepub fn headertype(self, v: u8) -> Self
pub fn headertype(self, v: u8) -> Self
Set the header type (bits 3-0 of frame control).
Sourcepub fn beam_control(self, v: u8) -> Self
pub fn beam_control(self, v: u8) -> Self
Set the beam control field (bits 6-5 of beam/sequence byte).
Trait Implementations§
Source§impl Clone for ZWaveBuilder
impl Clone for ZWaveBuilder
Source§fn clone(&self) -> ZWaveBuilder
fn clone(&self) -> ZWaveBuilder
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 ZWaveBuilder
impl Debug for ZWaveBuilder
Source§impl Default for ZWaveBuilder
impl Default for ZWaveBuilder
Source§impl IntoLayerStackEntry for ZWaveBuilder
impl IntoLayerStackEntry for ZWaveBuilder
fn into_layer_stack_entry(self) -> LayerStackEntry
Auto Trait Implementations§
impl Freeze for ZWaveBuilder
impl RefUnwindSafe for ZWaveBuilder
impl Send for ZWaveBuilder
impl Sync for ZWaveBuilder
impl Unpin for ZWaveBuilder
impl UnsafeUnpin for ZWaveBuilder
impl UnwindSafe for ZWaveBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more