pub struct FrameControl(pub u8);Expand description
Frame Control field
See Section 2.2.5.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.2.5.1.1
Sourcepub fn set_frame_type(self, value: FrameType) -> Self
pub fn set_frame_type(self, value: FrameType) -> Self
Sets the frame type
pub fn delivery_mode(&self) -> DeliveryMode
pub fn set_delivery_mode(self, value: DeliveryMode) -> Self
Sourcepub fn ack_format_flag(&self) -> bool
pub fn ack_format_flag(&self) -> bool
whether the destination endpoint, cluster, profile, and source endpoint fields are present in the acknowledgement frame
Sourcepub fn set_ack_format_flag(self, value: bool) -> Self
pub fn set_ack_format_flag(self, value: bool) -> Self
Sets the ack format flag
pub fn security_flag(&self) -> bool
pub fn set_security_flag(self, value: bool) -> Self
Sourcepub fn ack_request(&self) -> bool
pub fn ack_request(&self) -> bool
whether the originator requires an acknowledgement frame; always false for broadcast or multicast
Sourcepub fn set_ack_request(self, value: bool) -> Self
pub fn set_ack_request(self, value: bool) -> Self
Requests an APS acknowledgement for this frame (2.2.8.4.3).
Must stay 0 for acknowledgement frames and for broadcast or group-addressed transmissions.
Sourcepub fn extended_header(&self) -> bool
pub fn extended_header(&self) -> bool
whether the extended header is included in the frame
Sourcepub fn has_data_fields(&self) -> bool
pub fn has_data_fields(&self) -> bool
Whether the endpoint, cluster, and profile fields are present (2.2.5.1).
True for data frames and data-frame acks; an ack format sub-field of 1 marks a command-frame ack without addressing fields (2.2.5.1.1.4).
Sourcepub fn has_destination_endpoint(&self) -> bool
pub fn has_destination_endpoint(&self) -> bool
Whether the destination endpoint field is present (2.2.5.1.2).
Present for unicast or broadcast delivery when data fields are included.
Trait Implementations§
Source§impl Clone for FrameControl
impl Clone for FrameControl
impl Copy for FrameControl
Source§impl Debug for FrameControl
impl Debug for FrameControl
Source§impl Default for FrameControl
impl Default for FrameControl
impl Eq for FrameControl
Source§impl PartialEq for FrameControl
impl PartialEq for FrameControl
impl StructuralPartialEq for FrameControl
Source§impl<C: Default> TryRead<'_, C> for FrameControl
impl<C: Default> TryRead<'_, C> 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 UnsafeUnpin 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
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> ⓘ
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> ⓘ
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