pub enum S101Message {
EmberData {
dtd_type: u8,
app_bytes: Vec<u8>,
flags: EmberFlags,
payload: Vec<u8>,
},
KeepAliveRequest,
KeepAliveResponse,
}Expand description
An S101 message (high-level representation).
Variants§
EmberData
Ember+ data packet
Fields
§
flags: EmberFlagsPacket flags
KeepAliveRequest
Keep-alive request
KeepAliveResponse
Keep-alive response
Implementations§
Source§impl S101Message
impl S101Message
Sourcepub fn ember_data(payload: Vec<u8>) -> Self
pub fn ember_data(payload: Vec<u8>) -> Self
Create an Ember data message.
Sourcepub fn is_keepalive_request(&self) -> bool
pub fn is_keepalive_request(&self) -> bool
Check if this is a keep-alive request.
Sourcepub fn is_keepalive_response(&self) -> bool
pub fn is_keepalive_response(&self) -> bool
Check if this is a keep-alive response.
Trait Implementations§
Source§impl Clone for S101Message
impl Clone for S101Message
Source§fn clone(&self) -> S101Message
fn clone(&self) -> S101Message
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 S101Message
impl Debug for S101Message
Source§impl PartialEq for S101Message
impl PartialEq for S101Message
impl Eq for S101Message
impl StructuralPartialEq for S101Message
Auto Trait Implementations§
impl Freeze for S101Message
impl RefUnwindSafe for S101Message
impl Send for S101Message
impl Sync for S101Message
impl Unpin for S101Message
impl UnsafeUnpin for S101Message
impl UnwindSafe for S101Message
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