#[non_exhaustive]pub enum ArchError {
UnknownArchitecture,
}Available on crate feature
sys only.Expand description
Error type for architecture parsing.
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.
UnknownArchitecture
Unknown architecture string
The provided string does not match any known CPU architecture.
Supported architectures include: x86, x86_64, aarch64, arm, riscv32,
riscv64, wasm32, wasm64, mips, mips64, powerpc, powerpc64, s390x.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArchError
impl<'de> Deserialize<'de> for ArchError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for ArchError
Available on crate feature std only.
impl Error for ArchError
Available on crate feature
std only.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()
impl Copy for ArchError
impl Eq for ArchError
impl StructuralPartialEq for ArchError
Auto Trait Implementations§
impl Freeze for ArchError
impl RefUnwindSafe for ArchError
impl Send for ArchError
impl Sync for ArchError
impl Unpin for ArchError
impl UnwindSafe for ArchError
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