pub enum Recipient {
Direct {
agent_fp: Fingerprint,
},
Topic {
name: String,
},
Anycast {
capability: String,
},
}Expand description
Recipient of an envelope — direct peer, named topic, or anycast.
Variants§
Direct
Direct peer, addressed by agent pubkey fingerprint.
Fields
§
agent_fp: FingerprintTopic
Pub/sub topic — a string name, scoped to the sender’s user namespace.
Anycast
Anycast: any agent claiming the named capability.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Recipient
impl<'de> Deserialize<'de> for Recipient
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Recipient
impl StructuralPartialEq for Recipient
Auto Trait Implementations§
impl Freeze for Recipient
impl RefUnwindSafe for Recipient
impl Send for Recipient
impl Sync for Recipient
impl Unpin for Recipient
impl UnsafeUnpin for Recipient
impl UnwindSafe for Recipient
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