#[non_exhaustive]pub enum LicenseType {
DevelopmentSystem,
DebugDeploymentEnv,
BaseDeploymentEngine,
Oem,
Evaluation,
NoLicense,
Temporary,
Other,
CustomEditorDeployment,
}Expand description
The kind of license the engine is using (Engine.LicenseType).
Where several are activated on one machine, the engine picks the minimum that satisfies the request rather than the most capable, so this reports what is actually in use and not what is installed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DevelopmentSystem
Full development system.
DebugDeploymentEnv
Debug deployment environment.
BaseDeploymentEngine
Base deployment engine.
Oem
An OEM license.
Evaluation
An evaluation license, which expires.
NoLicense
No license at all.
The state a host has to survive: the engine object may still exist, but anything needing a license will refuse.
Temporary
A temporary license, taken when the volume license server is unreachable. Worth logging: it means the station could not reach the server, so it will need to later.
Other
The engine could not determine the type.
CustomEditorDeployment
Custom sequence editor deployment.
Implementations§
Source§impl LicenseType
impl LicenseType
Sourcepub const fn from_bits(bits: i32) -> Result<Self, i32>
pub const fn from_bits(bits: i32) -> Result<Self, i32>
Maps the engine’s number onto a type.
§Errors
The raw value, when it is one this build does not name. A newer engine may define a license type this crate predates, and reporting the number is more useful than guessing which existing one it resembles.
Sourcepub const fn is_usable(self) -> bool
pub const fn is_usable(self) -> bool
Whether this license lets a host expect to run sequences.
False for NoLicense only. Everything else grants
something, though not necessarily everything a caller wants, an
evaluation license expires and a base deployment engine cannot edit, so
this is a floor, not a guarantee.
Trait Implementations§
Source§impl Clone for LicenseType
impl Clone for LicenseType
Source§fn clone(&self) -> LicenseType
fn clone(&self) -> LicenseType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more