Struct matrix_sdk_crypto::store::caches::GroupSessionStore
source · [−]pub struct GroupSessionStore { /* private fields */ }
Expand description
In-memory store that holds inbound group sessions.
Implementations
sourceimpl GroupSessionStore
impl GroupSessionStore
sourcepub fn add(&self, session: InboundGroupSession) -> bool
pub fn add(&self, session: InboundGroupSession) -> bool
Add an inbound group session to the store.
Returns true if the session was added, false if the session was already in the store.
sourcepub fn get_all(&self) -> Vec<InboundGroupSession>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_all(&self) -> Vec<InboundGroupSession>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get all the group sessions the store knows about.
sourcepub fn get(
&self,
room_id: &RoomId,
sender_key: &str,
session_id: &str
) -> Option<InboundGroupSession>
pub fn get(
&self,
room_id: &RoomId,
sender_key: &str,
session_id: &str
) -> Option<InboundGroupSession>
Get a inbound group session from our store.
Arguments
-
room_id
- The room id of the room that the session belongs to. -
sender_key
- The sender key that sent us the session. -
session_id
- The unique id of the session.
Trait Implementations
sourceimpl Clone for GroupSessionStore
impl Clone for GroupSessionStore
sourcefn clone(&self) -> GroupSessionStore
fn clone(&self) -> GroupSessionStore
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 GroupSessionStore
impl Debug for GroupSessionStore
sourceimpl Default for GroupSessionStore
impl Default for GroupSessionStore
sourcefn default() -> GroupSessionStore
fn default() -> GroupSessionStore
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for GroupSessionStore
impl Send for GroupSessionStore
impl Sync for GroupSessionStore
impl Unpin for GroupSessionStore
impl !UnwindSafe for GroupSessionStore
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