pub enum Message<'a> {
Telegram(Received<'a>),
Response {
group: u8,
id: u8,
payload: &'a [u8],
},
}Expand description
What a stick sent.
Variants§
Telegram(Received<'a>)
A received radio telegram.
Response
A response or indication other than a telegram: group is the IMST endpoint or
SAP (0 for Amber), id the message or command (Amber confirmations are
command | 0x80), payload its bytes (a status byte first on the iU891A).
Trait Implementations§
impl<'a> Copy for Message<'a>
impl<'a> Eq for Message<'a>
impl<'a> StructuralPartialEq for Message<'a>
Auto Trait Implementations§
impl<'a> Forget for Message<'a>
impl<'a> Freeze for Message<'a>
impl<'a> Move for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnsafeUnpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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