pub struct DeliveredMessage<'a> {
pub channel_id: ChannelId,
pub key: MessageKey,
pub bytes: &'a [u8],
}Expand description
Borrowed message delivered by the engine.
Fields§
§channel_id: ChannelIdChannel that owns the message.
key: MessageKeyMessage key.
bytes: &'a [u8]Complete message bytes.
Implementations§
Source§impl<'a> DeliveredMessage<'a>
impl<'a> DeliveredMessage<'a>
Trait Implementations§
Source§impl<'a> Clone for DeliveredMessage<'a>
impl<'a> Clone for DeliveredMessage<'a>
Source§fn clone(&self) -> DeliveredMessage<'a>
fn clone(&self) -> DeliveredMessage<'a>
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 moreSource§impl<'a> Debug for DeliveredMessage<'a>
impl<'a> Debug for DeliveredMessage<'a>
Source§impl<'a> PartialEq for DeliveredMessage<'a>
impl<'a> PartialEq for DeliveredMessage<'a>
Source§fn eq(&self, other: &DeliveredMessage<'a>) -> bool
fn eq(&self, other: &DeliveredMessage<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for DeliveredMessage<'a>
impl<'a> Eq for DeliveredMessage<'a>
impl<'a> StructuralPartialEq for DeliveredMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeliveredMessage<'a>
impl<'a> RefUnwindSafe for DeliveredMessage<'a>
impl<'a> Send for DeliveredMessage<'a>
impl<'a> Sync for DeliveredMessage<'a>
impl<'a> Unpin for DeliveredMessage<'a>
impl<'a> UnsafeUnpin for DeliveredMessage<'a>
impl<'a> UnwindSafe for DeliveredMessage<'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