pub enum LicenseState {
Loading,
MissingKey,
Active,
InvalidKey,
Expired,
VersionNotAllowed,
MachineLimitReached,
OfflineExpired,
ClockTampered,
}Expand description
The license state of the app.
Variants§
Loading
Startup validation in progress.
MissingKey
No license key stored yet: ask the user for one.
Active
Valid license, verified online or with the stored token.
InvalidKey
The key does not exist for this product.
Expired
The license expiration date has passed.
VersionNotAllowed
The license doesn’t include this app version. See
LicenseManager::latest_allowed_version.
MachineLimitReached
The license is active on its maximum number of machines.
OfflineExpired
Server unreachable and no valid stored token.
ClockTampered
Server unreachable and the system clock was rolled back.
Implementations§
Trait Implementations§
Source§impl Clone for LicenseState
impl Clone for LicenseState
impl Copy for LicenseState
Source§impl Debug for LicenseState
impl Debug for LicenseState
Source§impl<'de> Deserialize<'de> for LicenseState
impl<'de> Deserialize<'de> for LicenseState
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 Display for LicenseState
impl Display for LicenseState
impl Eq for LicenseState
Source§impl Hash for LicenseState
impl Hash for LicenseState
Source§impl PartialEq for LicenseState
impl PartialEq for LicenseState
Source§impl Serialize for LicenseState
impl Serialize for LicenseState
impl StructuralPartialEq for LicenseState
Auto Trait Implementations§
impl Freeze for LicenseState
impl RefUnwindSafe for LicenseState
impl Send for LicenseState
impl Sync for LicenseState
impl Unpin for LicenseState
impl UnsafeUnpin for LicenseState
impl UnwindSafe for LicenseState
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.