pub struct ChannelEncryption {
pub scheme: EncryptionScheme,
pub enforced: bool,
pub key_rotation_seconds: u64,
}Expand description
Channel-level encryption configuration.
Fields§
§scheme: EncryptionSchemeEncryption scheme in use.
enforced: boolWhether encryption is enforced for all messages.
key_rotation_seconds: u64Key rotation interval in seconds (0 = no rotation).
Trait Implementations§
Source§impl Clone for ChannelEncryption
impl Clone for ChannelEncryption
Source§fn clone(&self) -> ChannelEncryption
fn clone(&self) -> ChannelEncryption
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 ChannelEncryption
impl Debug for ChannelEncryption
Source§impl Default for ChannelEncryption
impl Default for ChannelEncryption
Source§fn default() -> ChannelEncryption
fn default() -> ChannelEncryption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelEncryption
impl<'de> Deserialize<'de> for ChannelEncryption
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
Auto Trait Implementations§
impl Freeze for ChannelEncryption
impl RefUnwindSafe for ChannelEncryption
impl Send for ChannelEncryption
impl Sync for ChannelEncryption
impl Unpin for ChannelEncryption
impl UnsafeUnpin for ChannelEncryption
impl UnwindSafe for ChannelEncryption
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