#[non_exhaustive]pub enum PartitionKindBuilderError {
Config(PartitionKindError),
MutuallyExclusive(String),
Required(String),
}Expand description
PartitionKindBuilder runtime errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Config(PartitionKindError)
Error while configuring PartitionKind instance.
MutuallyExclusive(String)
Error if two mutually exclusive setter functions are called.
Required(String)
Error if a required method is not called.
Trait Implementations§
Source§impl Clone for PartitionKindBuilderError
impl Clone for PartitionKindBuilderError
Source§fn clone(&self) -> PartitionKindBuilderError
fn clone(&self) -> PartitionKindBuilderError
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 PartitionKindBuilderError
impl Debug for PartitionKindBuilderError
Source§impl Display for PartitionKindBuilderError
impl Display for PartitionKindBuilderError
Source§impl Error for PartitionKindBuilderError
impl Error for PartitionKindBuilderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<PartitionKindBuilderError> for RsFdiskError
impl From<PartitionKindBuilderError> for RsFdiskError
Source§fn from(source: PartitionKindBuilderError) -> Self
fn from(source: PartitionKindBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<PartitionKindError> for PartitionKindBuilderError
impl From<PartitionKindError> for PartitionKindBuilderError
Source§fn from(source: PartitionKindError) -> Self
fn from(source: PartitionKindError) -> Self
Converts to this type from the input type.
Source§impl Hash for PartitionKindBuilderError
impl Hash for PartitionKindBuilderError
Source§impl Ord for PartitionKindBuilderError
impl Ord for PartitionKindBuilderError
Source§fn cmp(&self, other: &PartitionKindBuilderError) -> Ordering
fn cmp(&self, other: &PartitionKindBuilderError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for PartitionKindBuilderError
impl PartialOrd for PartitionKindBuilderError
impl Eq for PartitionKindBuilderError
impl StructuralPartialEq for PartitionKindBuilderError
Auto Trait Implementations§
impl Freeze for PartitionKindBuilderError
impl RefUnwindSafe for PartitionKindBuilderError
impl Send for PartitionKindBuilderError
impl Sync for PartitionKindBuilderError
impl Unpin for PartitionKindBuilderError
impl UnwindSafe for PartitionKindBuilderError
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