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