#[non_exhaustive]pub enum TargetProfileError {
InvalidImplementation,
MaximumBeforeMinimum {
minimum: PlatformVersion,
maximum: PlatformVersion,
},
}Expand description
Invalid target profile.
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.
InvalidImplementation
The target implementation name was empty or contained a NUL byte.
MaximumBeforeMinimum
The optional maximum version was before the minimum.
Fields
§
minimum: PlatformVersionInclusive minimum.
§
maximum: PlatformVersionInvalid inclusive maximum.
Trait Implementations§
Source§impl Clone for TargetProfileError
impl Clone for TargetProfileError
Source§fn clone(&self) -> TargetProfileError
fn clone(&self) -> TargetProfileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetProfileError
impl Debug for TargetProfileError
Source§impl Display for TargetProfileError
impl Display for TargetProfileError
impl Eq for TargetProfileError
Source§impl Error for TargetProfileError
impl Error for TargetProfileError
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 PartialEq for TargetProfileError
impl PartialEq for TargetProfileError
impl StructuralPartialEq for TargetProfileError
Auto Trait Implementations§
impl Freeze for TargetProfileError
impl RefUnwindSafe for TargetProfileError
impl Send for TargetProfileError
impl Sync for TargetProfileError
impl Unpin for TargetProfileError
impl UnsafeUnpin for TargetProfileError
impl UnwindSafe for TargetProfileError
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