Struct matrix_sdk_crypto::olm::EncryptionSettings
source · [−]pub struct EncryptionSettings {
pub algorithm: EventEncryptionAlgorithm,
pub rotation_period: Duration,
pub rotation_period_msgs: u64,
pub history_visibility: HistoryVisibility,
}
Expand description
Settings for an encrypted room.
This determines the algorithm and rotation periods of a group session.
Fields
algorithm: EventEncryptionAlgorithm
The encryption algorithm that should be used in the room.
rotation_period: Duration
How long the session should be used before changing it.
rotation_period_msgs: u64
How many messages should be sent before changing the session.
history_visibility: HistoryVisibility
The history visibility of the room when the session was created.
Implementations
sourceimpl EncryptionSettings
impl EncryptionSettings
sourcepub fn new(
content: RoomEncryptionEventContent,
history_visibility: HistoryVisibility
) -> Self
pub fn new(
content: RoomEncryptionEventContent,
history_visibility: HistoryVisibility
) -> Self
Create new encryption settings using an RoomEncryptionEventContent
and
a history visibility.
Trait Implementations
sourceimpl Clone for EncryptionSettings
impl Clone for EncryptionSettings
sourcefn clone(&self) -> EncryptionSettings
fn clone(&self) -> EncryptionSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EncryptionSettings
impl Debug for EncryptionSettings
sourceimpl Default for EncryptionSettings
impl Default for EncryptionSettings
sourceimpl<'de> Deserialize<'de> for EncryptionSettings
impl<'de> Deserialize<'de> for EncryptionSettings
sourcefn 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
sourceimpl Serialize for EncryptionSettings
impl Serialize for EncryptionSettings
Auto Trait Implementations
impl RefUnwindSafe for EncryptionSettings
impl Send for EncryptionSettings
impl Sync for EncryptionSettings
impl Unpin for EncryptionSettings
impl UnwindSafe for EncryptionSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more