pub enum ConversationKey {
Direct {
peer: PublicKey,
},
ChannelGroup {
channel: ChannelTag,
},
ChannelDirect {
channel: ChannelTag,
peer: PublicKey,
},
Room {
room: PublicKey,
},
}Expand description
Identity of a conversation, independent of transport handles.
Variants§
Direct
One-to-one unicast conversation with an authenticated peer.
Fields
§
peer: PublicKeyChannelGroup
The shared group conversation of a multicast channel.
Keyed by the channel’s tag rather than its two-byte identifier: the identifier is a hint that distinct keys may share, and a conversation must never merge two channels that a receiver can tell apart by authentication.
Fields
§
channel: ChannelTagChannelDirect
One-to-one blind-unicast conversation over a channel key.
Room
Conversation with a chat-room node (reserved for the room adapter).
Fields
§
room: PublicKeyImplementations§
Source§impl ConversationKey
impl ConversationKey
Sourcepub fn uses_multicast_references(&self) -> bool
pub fn uses_multicast_references(&self) -> bool
True when message references use the 4-byte multicast Regarding form.
Trait Implementations§
Source§impl Clone for ConversationKey
impl Clone for ConversationKey
Source§fn clone(&self) -> ConversationKey
fn clone(&self) -> ConversationKey
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConversationKey
impl Debug for ConversationKey
Source§impl Hash for ConversationKey
impl Hash for ConversationKey
Source§impl PartialEq for ConversationKey
impl PartialEq for ConversationKey
impl Copy for ConversationKey
impl Eq for ConversationKey
impl StructuralPartialEq for ConversationKey
Auto Trait Implementations§
impl Freeze for ConversationKey
impl RefUnwindSafe for ConversationKey
impl Send for ConversationKey
impl Sync for ConversationKey
impl Unpin for ConversationKey
impl UnwindSafe for ConversationKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)