#[non_exhaustive]pub enum PromptError {
Allocation(String),
Config(String),
CStringConversion(String),
Selection(String),
}
Expand description
Prompt
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.
Allocation(String)
Error while allocating memory.
Config(String)
Error while configuring a Prompt
instance.
CStringConversion(String)
Error while converting a value to CString
.
Selection(String)
Error while selecting a MenuItem
.
Trait Implementations§
Source§impl Clone for PromptError
impl Clone for PromptError
Source§fn clone(&self) -> PromptError
fn clone(&self) -> PromptError
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 PromptError
impl Debug for PromptError
Source§impl Display for PromptError
impl Display for PromptError
Source§impl Error for PromptError
impl Error for PromptError
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<PromptError> for RsFdiskError
impl From<PromptError> for RsFdiskError
Source§fn from(source: PromptError) -> Self
fn from(source: PromptError) -> Self
Converts to this type from the input type.
Source§impl Hash for PromptError
impl Hash for PromptError
Source§impl Ord for PromptError
impl Ord for PromptError
Source§fn cmp(&self, other: &PromptError) -> Ordering
fn cmp(&self, other: &PromptError) -> 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 PromptError
impl PartialEq for PromptError
Source§impl PartialOrd for PromptError
impl PartialOrd for PromptError
impl Eq for PromptError
impl StructuralPartialEq for PromptError
Auto Trait Implementations§
impl Freeze for PromptError
impl RefUnwindSafe for PromptError
impl Send for PromptError
impl Sync for PromptError
impl Unpin for PromptError
impl UnwindSafe for PromptError
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