pub enum MessageType {
JoinRequest,
JoinAccept,
UnconfirmedUp,
ConfirmedUp,
UnconfirmedDown,
ConfirmedDown,
}Expand description
What kind of message a frame is, read from its header.
Variants§
JoinRequest
A device asking to join a network.
JoinAccept
A network admitting a device.
UnconfirmedUp
Data from a device that does not need acknowledging.
ConfirmedUp
Data from a device that asks to be acknowledged.
UnconfirmedDown
Data to a device that does not need acknowledging.
ConfirmedDown
Data to a device that asks to be acknowledged.
Implementations§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
impl Eq for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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