#[non_exhaustive]pub enum ParsePidError {
Number(ParseIntError),
OutOfRange(PidOutOfRange),
}Expand description
Why Pid’s FromStr rejected a string.
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.
Number(ParseIntError)
Not a decimal or 0x-prefixed hexadecimal number.
OutOfRange(PidOutOfRange)
A number above the 13-bit range.
Trait Implementations§
Source§impl Clone for ParsePidError
impl Clone for ParsePidError
Source§impl Debug for ParsePidError
impl Debug for ParsePidError
Source§impl Display for ParsePidError
impl Display for ParsePidError
impl Eq for ParsePidError
Source§impl Error for ParsePidError
impl Error for ParsePidError
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<ParseIntError> for ParsePidError
impl From<ParseIntError> for ParsePidError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<PidOutOfRange> for ParsePidError
impl From<PidOutOfRange> for ParsePidError
Source§fn from(source: PidOutOfRange) -> Self
fn from(source: PidOutOfRange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParsePidError
impl PartialEq for ParsePidError
impl StructuralPartialEq for ParsePidError
Auto Trait Implementations§
impl Forget for ParsePidError
impl Freeze for ParsePidError
impl Move for ParsePidError
impl RefUnwindSafe for ParsePidError
impl Send for ParsePidError
impl Sync for ParsePidError
impl Unpin for ParsePidError
impl UnsafeUnpin for ParsePidError
impl UnwindSafe for ParsePidError
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