pub enum ShardHealth {
Healthy,
Corrupt {
expected: String,
actual: String,
},
Missing,
NoOid,
}Expand description
Health status of an individual shard after verification.
Variants§
Healthy
File is healthy - hash matches expected OID.
Corrupt
File is corrupt - hash doesn’t match expected OID.
Fields
Missing
File is missing from disk.
NoOid
No OID available to verify against.
Trait Implementations§
Source§impl Clone for ShardHealth
impl Clone for ShardHealth
Source§fn clone(&self) -> ShardHealth
fn clone(&self) -> ShardHealth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShardHealth
impl Debug for ShardHealth
Source§impl<'de> Deserialize<'de> for ShardHealth
impl<'de> Deserialize<'de> for ShardHealth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShardHealth
impl PartialEq for ShardHealth
Source§impl Serialize for ShardHealth
impl Serialize for ShardHealth
impl Eq for ShardHealth
impl StructuralPartialEq for ShardHealth
Auto Trait Implementations§
impl Freeze for ShardHealth
impl RefUnwindSafe for ShardHealth
impl Send for ShardHealth
impl Sync for ShardHealth
impl Unpin for ShardHealth
impl UnwindSafe for ShardHealth
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