Struct matrix_sdk_crypto::olm::PickledOutboundGroupSession [−][src]
pub struct PickledOutboundGroupSession {
pub pickle: OutboundGroupSessionPickle,
pub settings: Arc<EncryptionSettings>,
pub room_id: Arc<RoomId>,
pub creation_time: Instant,
pub message_count: u64,
pub shared: bool,
pub invalidated: bool,
pub shared_with_set: BTreeMap<UserId, BTreeMap<DeviceIdBox, ShareInfo>>,
pub requests: BTreeMap<Uuid, (Arc<ToDeviceRequest>, BTreeMap<UserId, BTreeMap<DeviceIdBox, ShareInfo>>)>,
}Expand description
A pickled version of an InboundGroupSession.
Holds all the information that needs to be stored in a database to restore an InboundGroupSession.
Fields
pickle: OutboundGroupSessionPickleThe pickle string holding the OutboundGroupSession.
settings: Arc<EncryptionSettings>The settings this session adheres to.
room_id: Arc<RoomId>The room id this session is used for.
creation_time: InstantThe timestamp when this session was created.
message_count: u64The number of messages this session has already encrypted.
Is the session shared.
invalidated: boolHas the session been invalidated.
The set of users the session has been already shared with.
requests: BTreeMap<Uuid, (Arc<ToDeviceRequest>, BTreeMap<UserId, BTreeMap<DeviceIdBox, ShareInfo>>)>Requests that need to be sent out to share the session.
Trait Implementations
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 RefUnwindSafe for PickledOutboundGroupSession
impl Send for PickledOutboundGroupSession
impl Sync for PickledOutboundGroupSession
impl Unpin for PickledOutboundGroupSession
impl UnwindSafe for PickledOutboundGroupSession
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more