#[non_exhaustive]pub enum MediatorPdu {
TopicAnnounce {
from: String,
topics: Vec<String>,
},
Forward {
topic: String,
msg_blob: Vec<u8>,
type_id: String,
},
}Expand description
Wire shape of a cross-node mediator exchange.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopicAnnounce
Announce the set of topics this node has at least one subscriber for.
Forward
Forward msg_blob (already serialized) to every local subscriber
of topic on the receiving node.
Trait Implementations§
Source§impl Clone for MediatorPdu
impl Clone for MediatorPdu
Source§fn clone(&self) -> MediatorPdu
fn clone(&self) -> MediatorPdu
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 moreAuto Trait Implementations§
impl Freeze for MediatorPdu
impl RefUnwindSafe for MediatorPdu
impl Send for MediatorPdu
impl Sync for MediatorPdu
impl Unpin for MediatorPdu
impl UnsafeUnpin for MediatorPdu
impl UnwindSafe for MediatorPdu
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