pub struct MemoryLifecycleStore { /* private fields */ }Expand description
A DashMap-backed LifecycleStore mapping a registered agent to the
instant of its last heartbeat. Cloning shares the same underlying map.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryLifecycleStore
impl Clone for MemoryLifecycleStore
Source§fn clone(&self) -> MemoryLifecycleStore
fn clone(&self) -> MemoryLifecycleStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MemoryLifecycleStore
impl Default for MemoryLifecycleStore
Source§fn default() -> MemoryLifecycleStore
fn default() -> MemoryLifecycleStore
Returns the “default value” for a type. Read more
Source§impl LifecycleStore for MemoryLifecycleStore
impl LifecycleStore for MemoryLifecycleStore
Source§fn register<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: &'life1 AgentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: &'life1 AgentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Record that
agent_id is now online. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MemoryLifecycleStore
impl !UnwindSafe for MemoryLifecycleStore
impl Freeze for MemoryLifecycleStore
impl Send for MemoryLifecycleStore
impl Sync for MemoryLifecycleStore
impl Unpin for MemoryLifecycleStore
impl UnsafeUnpin for MemoryLifecycleStore
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