pub enum RecoveryShardState<PresentShard, MissingShard> {
Present(PresentShard),
MissingRecover(MissingShard),
MissingIgnore,
}Expand description
State of the shard for recovery
Variants§
Present(PresentShard)
Shard is present and will be used for recovery
MissingRecover(MissingShard)
Shard is missing and needs to be recovered
MissingIgnore
Shard is missing and does not need to be recovered.
This is only allowed for parity shards, all source shards must always be present or recovered.
Trait Implementations§
Source§impl<PresentShard: Clone, MissingShard: Clone> Clone for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard: Clone, MissingShard: Clone> Clone for RecoveryShardState<PresentShard, MissingShard>
Source§fn clone(&self) -> RecoveryShardState<PresentShard, MissingShard>
fn clone(&self) -> RecoveryShardState<PresentShard, MissingShard>
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<PresentShard: Copy, MissingShard: Copy> Copy for RecoveryShardState<PresentShard, MissingShard>
Source§impl<PresentShard: Debug, MissingShard: Debug> Debug for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard: Debug, MissingShard: Debug> Debug for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard: Eq, MissingShard: Eq> Eq for RecoveryShardState<PresentShard, MissingShard>
Source§impl<PresentShard: PartialEq, MissingShard: PartialEq> PartialEq for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard: PartialEq, MissingShard: PartialEq> PartialEq for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard: PartialEq, MissingShard: PartialEq> StructuralPartialEq for RecoveryShardState<PresentShard, MissingShard>
Auto Trait Implementations§
impl<PresentShard, MissingShard> Freeze for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard, MissingShard> RefUnwindSafe for RecoveryShardState<PresentShard, MissingShard>where
PresentShard: RefUnwindSafe,
MissingShard: RefUnwindSafe,
impl<PresentShard, MissingShard> Send for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard, MissingShard> Sync for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard, MissingShard> Unpin for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard, MissingShard> UnsafeUnpin for RecoveryShardState<PresentShard, MissingShard>where
PresentShard: UnsafeUnpin,
MissingShard: UnsafeUnpin,
impl<PresentShard, MissingShard> UnwindSafe for RecoveryShardState<PresentShard, MissingShard>where
PresentShard: UnwindSafe,
MissingShard: UnwindSafe,
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