#[non_exhaustive]pub enum PartitionListError {
Clear(String),
Creation(String),
IndexOutOfBounds(String),
Push(String),
Sort(String),
}Expand description
PartitionList 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.
Clear(String)
Error while removing all partitions in a PartitionList.
Creation(String)
Error while creating a new PartitionList instance.
IndexOutOfBounds(String)
Error while indexing entries in PartitionList.
Push(String)
Error while adding a partition to a PartitionList.
Sort(String)
Error while sorting a PartitionList.
Trait Implementations§
Source§impl Clone for PartitionListError
impl Clone for PartitionListError
Source§fn clone(&self) -> PartitionListError
fn clone(&self) -> PartitionListError
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 PartitionListError
impl Debug for PartitionListError
Source§impl Display for PartitionListError
impl Display for PartitionListError
Source§impl Error for PartitionListError
impl Error for PartitionListError
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<PartitionListError> for RsFdiskError
impl From<PartitionListError> for RsFdiskError
Source§fn from(source: PartitionListError) -> Self
fn from(source: PartitionListError) -> Self
Converts to this type from the input type.
Source§impl Hash for PartitionListError
impl Hash for PartitionListError
Source§impl Ord for PartitionListError
impl Ord for PartitionListError
Source§fn cmp(&self, other: &PartitionListError) -> Ordering
fn cmp(&self, other: &PartitionListError) -> 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 PartitionListError
impl PartialEq for PartitionListError
Source§impl PartialOrd for PartitionListError
impl PartialOrd for PartitionListError
impl Eq for PartitionListError
impl StructuralPartialEq for PartitionListError
Auto Trait Implementations§
impl Freeze for PartitionListError
impl RefUnwindSafe for PartitionListError
impl Send for PartitionListError
impl Sync for PartitionListError
impl Unpin for PartitionListError
impl UnwindSafe for PartitionListError
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