#[non_exhaustive]pub enum PartitionKindError {
Copy(String),
Creation(String),
CStringConversion(String),
Setting(String),
}
Expand description
PartitionKind
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.
Copy(String)
Error while copying a PartitionKind
.
Creation(String)
Error while creating a new PartitionKind
instance.
CStringConversion(String)
Error while converting a value to CString
.
Setting(String)
Error while configuring a new PartitionKind
instance.
Trait Implementations§
Source§impl Clone for PartitionKindError
impl Clone for PartitionKindError
Source§fn clone(&self) -> PartitionKindError
fn clone(&self) -> PartitionKindError
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 Debug for PartitionKindError
impl Debug for PartitionKindError
Source§impl Display for PartitionKindError
impl Display for PartitionKindError
Source§impl Error for PartitionKindError
impl Error for PartitionKindError
1.30.0 · 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<PartitionKindError> for PartitionError
impl From<PartitionKindError> for PartitionError
Source§fn from(source: PartitionKindError) -> Self
fn from(source: PartitionKindError) -> 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 From<PartitionKindError> for RsFdiskError
impl From<PartitionKindError> for RsFdiskError
Source§fn from(source: PartitionKindError) -> Self
fn from(source: PartitionKindError) -> Self
Converts to this type from the input type.
Source§impl Hash for PartitionKindError
impl Hash for PartitionKindError
Source§impl Ord for PartitionKindError
impl Ord for PartitionKindError
Source§fn cmp(&self, other: &PartitionKindError) -> Ordering
fn cmp(&self, other: &PartitionKindError) -> 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 PartialEq for PartitionKindError
impl PartialEq for PartitionKindError
Source§impl PartialOrd for PartitionKindError
impl PartialOrd for PartitionKindError
impl Eq for PartitionKindError
impl StructuralPartialEq for PartitionKindError
Auto Trait Implementations§
impl Freeze for PartitionKindError
impl RefUnwindSafe for PartitionKindError
impl Send for PartitionKindError
impl Sync for PartitionKindError
impl Unpin for PartitionKindError
impl UnwindSafe for PartitionKindError
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