pub struct ChannelMessage {
pub channel_idx: u8,
pub path_len: u8,
pub txt_type: u8,
pub sender_timestamp: u32,
pub text: String,
pub snr: Option<f32>,
}Expand description
Channel message - a message received on a group channel (identified by channel index)
Fields§
§channel_idx: u8Channel index
path_len: u8Path length
txt_type: u8Text type (0 = plain)
sender_timestamp: u32Sender timestamp
text: StringMessage text
snr: Option<f32>SNR (only in v3, divided by 4)
Implementations§
Source§impl ChannelMessage
impl ChannelMessage
Sourcepub fn message_id(&self) -> u64
pub fn message_id(&self) -> u64
Generate a “unique-ish” message ID for this message
Trait Implementations§
Source§impl Clone for ChannelMessage
impl Clone for ChannelMessage
Source§fn clone(&self) -> ChannelMessage
fn clone(&self) -> ChannelMessage
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 moreAuto Trait Implementations§
impl Freeze for ChannelMessage
impl RefUnwindSafe for ChannelMessage
impl Send for ChannelMessage
impl Sync for ChannelMessage
impl Unpin for ChannelMessage
impl UnsafeUnpin for ChannelMessage
impl UnwindSafe for ChannelMessage
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