Struct matrix_sdk_crypto::olm::InboundGroupSession [−][src]
pub struct InboundGroupSession { /* fields omitted */ }Expand description
Inbound group session.
Inbound group sessions are used to exchange room messages between a group of participants. Inbound group sessions are used to decrypt the room messages.
Implementations
pub fn from_export(
exported_session: impl Into<ExportedRoomKey>
) -> Result<Self, OlmGroupSessionError>
pub fn from_export(
exported_session: impl Into<ExportedRoomKey>
) -> Result<Self, OlmGroupSessionError>
Create a InboundGroupSession from an exported version of the group session.
Most notably this can be called with an ExportedRoomKey from a
previous export() call.
Store the group session as a base64 encoded string.
Arguments
pickle_mode- The mode that was used to pickle the group session, either an unencrypted mode or an encrypted using passphrase.
Export this session at the first known message index.
If only a limited part of this session should be exported use
export_at_index().
Get the sender key that this session was received from.
Get the map of signing keys this session was received from.
Get the list of ed25519 keys that this session was forwarded through.
Each ed25519 key represents a single device. If device A forwards the session to device B and device B to C this list will contain the ed25519 keys of A and B.
Export this session at the given message index.
pub fn from_pickle(
pickle: PickledInboundGroupSession,
pickle_mode: PicklingMode
) -> Result<Self, OlmGroupSessionError>
pub fn from_pickle(
pickle: PickledInboundGroupSession,
pickle_mode: PicklingMode
) -> Result<Self, OlmGroupSessionError>
Restore a Session from a previously pickled string.
Returns the restored group session or a OlmGroupSessionError if there
was an error.
Arguments
-
pickle- The pickled version of theInboundGroupSession. -
pickle_mode- The mode that was used to pickle the session, either an unencrypted mode or an encrypted using passphrase.
Returns the unique identifier for this session.
Get the first message index we know how to decrypt.
Trait Implementations
type Error = OlmGroupSessionError
type Error = OlmGroupSessionError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for InboundGroupSession
impl Send for InboundGroupSession
impl Sync for InboundGroupSession
impl Unpin for InboundGroupSession
impl !UnwindSafe for InboundGroupSession
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more