Struct matrix_sdk_crypto::store::caches::GroupSessionStore
source · pub struct GroupSessionStore { /* private fields */ }
Expand description
In-memory store that holds inbound group sessions.
Implementations§
source§impl 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>
pub fn get_all(&self) -> Vec<InboundGroupSession>
Get all the group sessions the store knows about.
Trait Implementations§
source§impl Debug for GroupSessionStore
impl Debug for GroupSessionStore
source§impl Default for GroupSessionStore
impl Default for GroupSessionStore
source§fn default() -> GroupSessionStore
fn default() -> GroupSessionStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for GroupSessionStore
impl RefUnwindSafe for GroupSessionStore
impl Send for GroupSessionStore
impl Sync for GroupSessionStore
impl Unpin for GroupSessionStore
impl UnwindSafe for GroupSessionStore
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more