pub struct InMemoryDurabilityBackend { /* private fields */ }Expand description
In-Memory-Durability-Backend (Default fuer 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>>
Liefert alle gespeicherten Samples fuer ein Topic in der
Reihenfolge ihrer Sequence-Number (sortiert pro 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<()>
Markiert eine Instance als
unregister, sodass nach
service_cleanup_delay die zugehoerigen Samples entfernt
werden. now ist die aktuelle Wall-Clock; das eigentliche
Loeschen passiert spaeter 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