pub struct InMemoryGroupStore { /* private fields */ }Expand description
Default in-process group store (one Mutex<HashMap>).
Implementations§
Source§impl InMemoryGroupStore
impl InMemoryGroupStore
pub fn new() -> InMemoryGroupStore
Trait Implementations§
Source§impl Default for InMemoryGroupStore
impl Default for InMemoryGroupStore
Source§fn default() -> InMemoryGroupStore
fn default() -> InMemoryGroupStore
Returns the “default value” for a type. Read more
Source§impl GroupStore for InMemoryGroupStore
impl GroupStore for InMemoryGroupStore
Source§fn append(&self, key: &str, msg: Message) -> (Vec<Message>, Instant)
fn append(&self, key: &str, msg: Message) -> (Vec<Message>, Instant)
Append
msg to the group keyed by key, returning a snapshot of the group (post-append)
and the Instant the group was first seen.Auto Trait Implementations§
impl !Freeze for InMemoryGroupStore
impl RefUnwindSafe for InMemoryGroupStore
impl Send for InMemoryGroupStore
impl Sync for InMemoryGroupStore
impl Unpin for InMemoryGroupStore
impl UnsafeUnpin for InMemoryGroupStore
impl UnwindSafe for InMemoryGroupStore
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