pub struct InMemoryDurabilityBackend { /* private fields */ }Expand description
In-memory durability backend (default for DurabilityKind::Transient).
Implementations§
Trait Implementations§
Source§impl DurabilityBackend for InMemoryDurabilityBackend
impl DurabilityBackend for InMemoryDurabilityBackend
Source§fn replay_for_topic(&self, topic: &str) -> Result<Vec<DurabilitySample>>
fn replay_for_topic(&self, topic: &str) -> Result<Vec<DurabilitySample>>
Returns all stored samples for a topic in order of their
sequence number (sorted per instance). Read more
Source§fn unregister_instance(
&self,
topic: &str,
instance_key: [u8; 16],
now: SystemTime,
) -> Result<()>
fn unregister_instance( &self, topic: &str, instance_key: [u8; 16], now: SystemTime, ) -> Result<()>
Marks an instance as
unregister so that its associated
samples are removed after service_cleanup_delay. now is the
current wall clock; the actual deletion happens later via
Self::cleanup. Read moreAuto Trait Implementations§
impl !Freeze for InMemoryDurabilityBackend
impl RefUnwindSafe for InMemoryDurabilityBackend
impl Send for InMemoryDurabilityBackend
impl Sync for InMemoryDurabilityBackend
impl Unpin for InMemoryDurabilityBackend
impl UnsafeUnpin for InMemoryDurabilityBackend
impl UnwindSafe for InMemoryDurabilityBackend
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