pub enum LifecycleState {
Opening,
Open,
Draining,
Closing,
Closed,
Poisoned,
}Expand description
Lifecycle states of one storage core (spec §10.1, S1A-004).
Variants§
Opening
Recovery, WAL opening, open-generation advancement, and table mounting are in progress. No operations are admitted.
Open
The core admits operations.
Draining
shutdown() has begun: new sessions and writes are rejected while
in-flight operations drain.
Closing
Operations have drained; durable state is being synced, workers are stopping, and the file lock is being released.
Closed
The core is fully shut down. Every operation fails.
Poisoned
An unrecoverable internal error (e.g. a durability poison) left the core unable to continue. Every operation fails.
Implementations§
Source§impl LifecycleState
impl LifecycleState
Sourcepub fn admits_operations(self) -> bool
pub fn admits_operations(self) -> bool
Whether the core currently admits new operations.
Trait Implementations§
Source§impl Clone for LifecycleState
impl Clone for LifecycleState
Source§fn clone(&self) -> LifecycleState
fn clone(&self) -> LifecycleState
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 moreimpl Copy for LifecycleState
Source§impl Debug for LifecycleState
impl Debug for LifecycleState
Source§impl Display for LifecycleState
impl Display for LifecycleState
impl Eq for LifecycleState
Source§impl PartialEq for LifecycleState
impl PartialEq for LifecycleState
impl StructuralPartialEq for LifecycleState
Auto Trait Implementations§
impl Freeze for LifecycleState
impl RefUnwindSafe for LifecycleState
impl Send for LifecycleState
impl Sync for LifecycleState
impl Unpin for LifecycleState
impl UnsafeUnpin for LifecycleState
impl UnwindSafe for LifecycleState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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