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
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 copy 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<PresentShard: Debug, MissingShard: Debug> Debug for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard: Debug, MissingShard: Debug> Debug 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>
Source§fn eq(&self, other: &RecoveryShardState<PresentShard, MissingShard>) -> bool
fn eq(&self, other: &RecoveryShardState<PresentShard, MissingShard>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<PresentShard: Copy, MissingShard: Copy> Copy for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard: Eq, MissingShard: Eq> Eq for RecoveryShardState<PresentShard, MissingShard>
impl<PresentShard, MissingShard> 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> 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