pub struct WriterSessionState { /* private fields */ }Expand description
Writer-session state for one namespace: the epoch this session acquired and its terminal fencing record.
This is authoritative session state, not a cache of durable state — nothing in the store can rebuild “this session was fenced”. Runtimes keep one shared instance per namespace in a registry that outlives every rebuildable cache (invalidation, LRU eviction, cache-disabled configurations) and hand it to each engine they build for the namespace. An engine built without one gets private state, which keeps the documented one-shot semantics: each one-shot commit is its own acquisition decision.
Trait Implementations§
Source§impl Debug for WriterSessionState
impl Debug for WriterSessionState
Source§impl Default for WriterSessionState
impl Default for WriterSessionState
Source§fn default() -> WriterSessionState
fn default() -> WriterSessionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WriterSessionState
impl RefUnwindSafe for WriterSessionState
impl Send for WriterSessionState
impl Sync for WriterSessionState
impl Unpin for WriterSessionState
impl UnsafeUnpin for WriterSessionState
impl UnwindSafe for WriterSessionState
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more