pub struct Message {
pub workspace: WorkspaceId,
pub revision: u64,
pub sender: PeerId,
pub received_from: PeerId,
pub topic: Topic,
pub payload: Vec<u8>,
pub recipients: Vec<[u8; 32]>,
pub delivery: DeliveryClass,
}Fields§
§workspace: WorkspaceId§revision: u64§sender: PeerId§received_from: PeerIdAuthenticated endpoint that handed this frame to us. Equal to sender
for direct traffic; forwarding code must never treat it as the author.
topic: Topic§payload: Vec<u8>§recipients: Vec<[u8; 32]>Nonempty only for a direct publication. These are workspace member IDs; endpoint selection is authenticated transport metadata, not application identity.
delivery: DeliveryClassTrait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Forget for Message
impl Freeze for Message
impl Move for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.