pub struct OnDiskDurabilityBackend { /* private fields */ }Expand description
On-Disk-Durability-Backend (DurabilityKind::Persistent).
Layout: <root>/<topic>/<hex(instance_key)>/<sequence>.bin enthaelt
den Encoded-Payload; <root>/<topic>/<hex(instance_key)>/.unregistered
markiert den Instance-Cleanup-Zeitpunkt (Unix-Nanos als ASCII).
Implementations§
Trait Implementations§
Source§impl DurabilityBackend for OnDiskDurabilityBackend
impl DurabilityBackend for OnDiskDurabilityBackend
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 OnDiskDurabilityBackend
impl RefUnwindSafe for OnDiskDurabilityBackend
impl Send for OnDiskDurabilityBackend
impl Sync for OnDiskDurabilityBackend
impl Unpin for OnDiskDurabilityBackend
impl UnsafeUnpin for OnDiskDurabilityBackend
impl UnwindSafe for OnDiskDurabilityBackend
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