pub struct FileDurableSessionStore { /* private fields */ }Expand description
Durable store that persists lease/snapshot/journal state to local files.
This backend is suitable for single-host durable recovery and conformance testing. Multi-node distributed deployments should still use a shared backend implementation.
Implementations§
Trait Implementations§
Source§impl Clone for FileDurableSessionStore
impl Clone for FileDurableSessionStore
Source§fn clone(&self) -> FileDurableSessionStore
fn clone(&self) -> FileDurableSessionStore
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 DurableSessionStore for FileDurableSessionStore
impl DurableSessionStore for FileDurableSessionStore
fn acquire_lease( &self, request: DurableLeaseRequest, ) -> Result<DurableLeaseGrant, DurableStoreError>
fn renew_lease( &self, session_id: &str, node_id: &str, fence_token: u64, ttl_ms: u64, ) -> Result<DurableLeaseGrant, DurableStoreError>
fn release_lease(&self, session_id: &str, node_id: &str, fence_token: u64)
fn load_record(&self, session_id: &str) -> Option<DurableSessionRecord>
fn save_snapshot(&self, session_id: &str, snapshot: DurableSessionSnapshot)
fn append_journal_entry( &self, session_id: &str, node_id: &str, fence_token: u64, message: ClientMessage, max_journal: usize, ) -> Result<DurableJournalEntry, DurableStoreError>
fn set_node_draining(&self, node_id: &str, draining: bool)
fn is_node_draining(&self, node_id: &str) -> bool
Auto Trait Implementations§
impl Freeze for FileDurableSessionStore
impl RefUnwindSafe for FileDurableSessionStore
impl Send for FileDurableSessionStore
impl Sync for FileDurableSessionStore
impl Unpin for FileDurableSessionStore
impl UnsafeUnpin for FileDurableSessionStore
impl UnwindSafe for FileDurableSessionStore
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