pub enum Status {
Loading,
Unlicensed,
Activating,
Licensed,
Trial,
TrialExpired,
NotCovered,
}Expand description
Where the license stands. Drive your UI off this.
Variants§
Loading
Validating the stored license at startup.
Unlicensed
No license on this device. LicenseState::lock_reason says why, when
there was one.
Activating
A browser activation is in progress. A license held from before (a trial being unlocked) stays in force until the new one lands.
Licensed
A full license is loaded.
Trial
A trial license is loaded.
TrialExpired
The trial has ended. LicenseState::expired_trial has it, for display.
NotCovered
The license is valid, but doesn’t cover this version of the app, such as
one whose updates ended before it came out. The app is locked, and the
license stays stored: LicenseState::not_covered has it, what it covers,
and where to upgrade.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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
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.