pub struct RawMessage<const MAX_DATA: usize> {
pub src: NodeAddress,
pub dst: NodeAddress,
pub data: Vec<u8, MAX_DATA>,
pub timestamp: Instant,
}Expand description
A raw byte message between two nodes.
Used by low-level runtime implementers working diectly with frames.
Fields§
§src: NodeAddress§dst: NodeAddress§data: Vec<u8, MAX_DATA>§timestamp: InstantTrait Implementations§
Source§impl<const MAX_DATA: usize> Clone for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> Clone for RawMessage<MAX_DATA>
Source§fn clone(&self) -> RawMessage<MAX_DATA>
fn clone(&self) -> RawMessage<MAX_DATA>
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<const MAX_DATA: usize> Debug for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> Debug for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> Eq for RawMessage<MAX_DATA>
Source§impl<const MAX_DATA: usize> PartialEq for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> PartialEq for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> StructuralPartialEq for RawMessage<MAX_DATA>
Auto Trait Implementations§
impl<const MAX_DATA: usize> Freeze for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> RefUnwindSafe for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> Send for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> Sync for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> Unpin for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> UnsafeUnpin for RawMessage<MAX_DATA>
impl<const MAX_DATA: usize> UnwindSafe for RawMessage<MAX_DATA>
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