Enum bee_storage::system::StorageHealth
source · [−]#[repr(u8)]
pub enum StorageHealth {
Healthy,
Idle,
Corrupted,
}
Expand description
Represents different health states for a StorageBackend
.
Variants
Healthy
The storage is in a healthy state.
Idle
The storage is running and the health status is idle.
Corrupted
The storage has been corrupted.
Trait Implementations
sourceimpl Clone for StorageHealth
impl Clone for StorageHealth
sourcefn clone(&self) -> StorageHealth
fn clone(&self) -> StorageHealth
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StorageHealth
impl Debug for StorageHealth
sourceimpl Packable for StorageHealth
impl Packable for StorageHealth
type UnpackError = Error
type UnpackError = Error
The error type that can be returned if some semantic error occurs while unpacking. Read more
type UnpackVisitor = ()
type UnpackVisitor = ()
FIXME: docs
sourcefn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
fn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
Packs this value into the given
Packer
.sourcefn unpack<U: Unpacker, const VERIFY: bool>(
unpacker: &mut U,
visitor: &Self::UnpackVisitor
) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
fn unpack<U: Unpacker, const VERIFY: bool>(
unpacker: &mut U,
visitor: &Self::UnpackVisitor
) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
sourceimpl PartialEq<StorageHealth> for StorageHealth
impl PartialEq<StorageHealth> for StorageHealth
sourcefn eq(&self, other: &StorageHealth) -> bool
fn eq(&self, other: &StorageHealth) -> bool
impl Copy for StorageHealth
impl Eq for StorageHealth
impl StructuralEq for StorageHealth
impl StructuralPartialEq for StorageHealth
Auto Trait Implementations
impl RefUnwindSafe for StorageHealth
impl Send for StorageHealth
impl Sync for StorageHealth
impl Unpin for StorageHealth
impl UnwindSafe for StorageHealth
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
sourcefn unpack_verified<T>(
bytes: T,
visitor: &<P as Packable>::UnpackVisitor
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>where
T: AsRef<[u8]>,
fn unpack_verified<T>(
bytes: T,
visitor: &<P as Packable>::UnpackVisitor
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>where
T: AsRef<[u8]>,
Unpacks this value from a type that implements [AsRef<[u8]>
].
sourcefn unpack_unverified<T>(
bytes: T
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>where
T: AsRef<[u8]>,
fn unpack_unverified<T>(
bytes: T
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>where
T: AsRef<[u8]>,
Unpacks this value from a type that implements [AsRef<[u8]>
] skipping some syntatical checks.
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length in bytes of the value after being packed. The returned value always matches the number of
bytes written using
pack
. Read more