pub struct InMemoryDurableSessionStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for InMemoryDurableSessionStore
impl Clone for InMemoryDurableSessionStore
Source§fn clone(&self) -> InMemoryDurableSessionStore
fn clone(&self) -> InMemoryDurableSessionStore
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 InMemoryDurableSessionStore
impl Default for InMemoryDurableSessionStore
Source§fn default() -> InMemoryDurableSessionStore
fn default() -> InMemoryDurableSessionStore
Returns the “default value” for a type. Read more
Source§impl DurableSessionStore for InMemoryDurableSessionStore
impl DurableSessionStore for InMemoryDurableSessionStore
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 InMemoryDurableSessionStore
impl RefUnwindSafe for InMemoryDurableSessionStore
impl Send for InMemoryDurableSessionStore
impl Sync for InMemoryDurableSessionStore
impl Unpin for InMemoryDurableSessionStore
impl UnsafeUnpin for InMemoryDurableSessionStore
impl UnwindSafe for InMemoryDurableSessionStore
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