pub enum Recipients {
One(String),
Set(BTreeSet<String>),
}Expand description
Recipient position of a Simple message (SPEC-014 REQ-622).
A bare @key symbol is a single recipient (the pre-SPEC-014 form,
byte-identical on re-serialisation); a non-empty list of @key symbols
is a multicast, serialised in canonical (sorted) order. A performative
whose :to annotation is the empty set simply carries no recipient
position.
Variants§
One(String)
Single recipient: (perf @r …).
Set(BTreeSet<String>)
Multicast: (perf (@r1 @r2) …); canonical order via BTreeSet.
Implementations§
Trait Implementations§
Source§impl Clone for Recipients
impl Clone for Recipients
Source§impl Debug for Recipients
impl Debug for Recipients
impl Eq for Recipients
Source§impl From<&str> for Recipients
impl From<&str> for Recipients
Source§impl From<String> for Recipients
impl From<String> for Recipients
Source§impl Hash for Recipients
impl Hash for Recipients
Source§impl PartialEq for Recipients
impl PartialEq for Recipients
impl StructuralPartialEq for Recipients
Auto Trait Implementations§
impl Forget for Recipients
impl Freeze for Recipientswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for Recipients
impl RefUnwindSafe for Recipients
impl Send for Recipients
impl Sync for Recipients
impl Unpin for Recipients
impl UnsafeUnpin for Recipientswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for Recipients
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