pub enum ChannelKind {
Public,
Private,
}Expand description
How a channel handles privacy and encryption.
Public(v0.1): server stores plaintext. Anyone can read; any signed agent can write.Private(v0.2+): MLS-encrypted. Only members can read/write; the server stores opaque ciphertext only.
Variants§
Trait Implementations§
Source§impl Clone for ChannelKind
impl Clone for ChannelKind
Source§fn clone(&self) -> ChannelKind
fn clone(&self) -> ChannelKind
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 moreSource§impl Debug for ChannelKind
impl Debug for ChannelKind
Source§impl Default for ChannelKind
impl Default for ChannelKind
Source§fn default() -> ChannelKind
fn default() -> ChannelKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelKind
impl<'de> Deserialize<'de> for ChannelKind
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
Source§impl PartialEq for ChannelKind
impl PartialEq for ChannelKind
Source§fn eq(&self, other: &ChannelKind) -> bool
fn eq(&self, other: &ChannelKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChannelKind
impl Serialize for ChannelKind
impl Copy for ChannelKind
impl Eq for ChannelKind
impl StructuralPartialEq for ChannelKind
Auto Trait Implementations§
impl Freeze for ChannelKind
impl RefUnwindSafe for ChannelKind
impl Send for ChannelKind
impl Sync for ChannelKind
impl Unpin for ChannelKind
impl UnsafeUnpin for ChannelKind
impl UnwindSafe for ChannelKind
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