pub enum LicenseCheck {
Ok,
BadSignature,
NotOfficialKey,
WrongUser,
WrongItem,
}Expand description
Outcome of a full license check. Order of checks: signature → signer identity → item binding → user binding (fail-closed at the first miss).
Variants§
Trait Implementations§
Source§impl Clone for LicenseCheck
impl Clone for LicenseCheck
Source§fn clone(&self) -> LicenseCheck
fn clone(&self) -> LicenseCheck
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 moreimpl Copy for LicenseCheck
Source§impl Debug for LicenseCheck
impl Debug for LicenseCheck
impl Eq for LicenseCheck
Source§impl PartialEq for LicenseCheck
impl PartialEq for LicenseCheck
impl StructuralPartialEq for LicenseCheck
Auto Trait Implementations§
impl Freeze for LicenseCheck
impl RefUnwindSafe for LicenseCheck
impl Send for LicenseCheck
impl Sync for LicenseCheck
impl Unpin for LicenseCheck
impl UnsafeUnpin for LicenseCheck
impl UnwindSafe for LicenseCheck
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.