pub enum TextSource {
Direct {
peer: PublicKey,
},
ChannelGroup {
channel: ChannelTag,
hint: NodeHint,
full_key: Option<PublicKey>,
},
ChannelDirect {
channel: ChannelTag,
peer: PublicKey,
},
}Expand description
Who a received text payload came from, and over what.
Variants§
Direct
Authenticated unicast from a peer.
Fields
§
peer: PublicKeyChannelGroup
Multicast to a channel. The sender claims a hint; the full key is present only when they addressed the frame with it.
ChannelDirect
Blind unicast to us over a channel key, from an addressable peer.
Implementations§
Source§impl TextSource
impl TextSource
pub fn channel(&self) -> Option<ChannelTag>
Trait Implementations§
Source§impl Clone for TextSource
impl Clone for TextSource
Source§fn clone(&self) -> TextSource
fn clone(&self) -> TextSource
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 TextSource
impl Debug for TextSource
Source§impl PartialEq for TextSource
impl PartialEq for TextSource
impl Copy for TextSource
impl Eq for TextSource
impl StructuralPartialEq for TextSource
Auto Trait Implementations§
impl Freeze for TextSource
impl RefUnwindSafe for TextSource
impl Send for TextSource
impl Sync for TextSource
impl Unpin for TextSource
impl UnwindSafe for TextSource
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)