pub enum RecoveryAmount {
Percent(u32),
Count(u32),
}Expand description
How the creator chooses the number of recovery slices.
Variants§
Percent(u32)
Derive recovery slices as a percentage of source slices.
Count(u32)
Use an exact recovery-slice count.
Trait Implementations§
Source§impl Clone for RecoveryAmount
impl Clone for RecoveryAmount
Source§fn clone(&self) -> RecoveryAmount
fn clone(&self) -> RecoveryAmount
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 RecoveryAmount
Source§impl Debug for RecoveryAmount
impl Debug for RecoveryAmount
Source§impl Default for RecoveryAmount
impl Default for RecoveryAmount
impl Eq for RecoveryAmount
Source§impl PartialEq for RecoveryAmount
impl PartialEq for RecoveryAmount
impl StructuralPartialEq for RecoveryAmount
Auto Trait Implementations§
impl Freeze for RecoveryAmount
impl RefUnwindSafe for RecoveryAmount
impl Send for RecoveryAmount
impl Sync for RecoveryAmount
impl Unpin for RecoveryAmount
impl UnsafeUnpin for RecoveryAmount
impl UnwindSafe for RecoveryAmount
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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