#[non_exhaustive]pub enum EntitlementError {
WrongPublisher(WrongPublisher),
LicencesWithoutInputs,
}Expand description
A caller’s error of try_check_entitlement (10.3, spec-0.5.0): the input is not one the
check can judge, so it is reported as such, never as a reason. Not a verification result.
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.
WrongPublisher(WrongPublisher)
The key document is not the receipt’s publisher’s (WrongPublisher).
LicencesWithoutInputs
Input licences were given for a receipt whose inputs is empty: the caller’s error
(10.3). The check of check_entitlement does not report it.
Trait Implementations§
Source§impl Clone for EntitlementError
impl Clone for EntitlementError
Source§impl Debug for EntitlementError
impl Debug for EntitlementError
Source§impl Display for EntitlementError
impl Display for EntitlementError
impl Eq for EntitlementError
Source§impl Error for EntitlementError
impl Error for EntitlementError
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 Hash for EntitlementError
impl Hash for EntitlementError
Source§impl PartialEq for EntitlementError
impl PartialEq for EntitlementError
impl StructuralPartialEq for EntitlementError
Auto Trait Implementations§
impl Forget for EntitlementError
impl Freeze for EntitlementError
impl Move for EntitlementError
impl RefUnwindSafe for EntitlementError
impl Send for EntitlementError
impl Sync for EntitlementError
impl Unpin for EntitlementError
impl UnsafeUnpin for EntitlementError
impl UnwindSafe for EntitlementError
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