pub struct FrameControl(pub u8);Expand description
See Section 2.4.1.1
Tuple Fields§
§0: u8Implementations§
Source§impl FrameControl
impl FrameControl
Sourcepub fn frame_type(self) -> FrameType
pub fn frame_type(self) -> FrameType
See Section 2.4.1.1.1
Returns true if command is global
Sourcepub fn is_manufacturer_specific(self) -> bool
pub fn is_manufacturer_specific(self) -> bool
The Manufacturer Specific field specifies whether this command refers to a manufacturer specific extension.
If this value is set to 1, the manufacturer code field SHALL be present in
the ZCLframe.
See Section 2.4.1.1.2
Sourcepub fn direction(self) -> bool
pub fn direction(self) -> bool
The direction specifies the client/server direction for this command. If set to 1, the command is being sent from the server side of a cluster to the client side of a cluster.
See Section 2.4.1.1.3
Sourcepub fn disable_default_response(self) -> bool
pub fn disable_default_response(self) -> bool
See Section 2.4.1.1.4
Trait Implementations§
Source§impl Clone for FrameControl
impl Clone for FrameControl
Source§fn clone(&self) -> FrameControl
fn clone(&self) -> FrameControl
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 moreSource§impl Debug for FrameControl
impl Debug for FrameControl
Source§impl PartialEq for FrameControl
impl PartialEq for FrameControl
Source§impl<C: Default> TryRead<'_, C> for FrameControl
impl<C: Default> TryRead<'_, C> for FrameControl
Source§impl<C: Default> TryWrite<C> for FrameControl
impl<C: Default> TryWrite<C> for FrameControl
impl Copy for FrameControl
impl Eq for FrameControl
impl StructuralPartialEq for FrameControl
Auto Trait Implementations§
impl Freeze for FrameControl
impl RefUnwindSafe for FrameControl
impl Send for FrameControl
impl Sync for FrameControl
impl Unpin for FrameControl
impl UnwindSafe for FrameControl
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