Enum wnf::CreatableStateLifetime
source · pub enum CreatableStateLifetime {
Permanent {
persist_data: bool,
},
Persistent,
Temporary,
}
Expand description
The lifetime of a state when specified upon creation
This is different from a StateLifetime
in two ways:
- It does not include an equivalent of the
StateLifetime::WellKnown
lifetime because states with that lifetime are provisioned with the system and cannot be created. - The
CreatableStateLifetime::Permanent
option comes with apersist_data
flag because that flag only applies to theStateLifetime::Permanent
(andStateLifetime::WellKnown
) lifetimes.
Variants§
Permanent
Fields
Lifetime of a permanent state, see StateLifetime::Permanent
Persistent
Lifetime of a persistent state (also known as volatile), see StateLifetime::Persistent
Temporary
Lifetime of a temporary state, see StateLifetime::Temporary
Trait Implementations§
source§impl Clone for CreatableStateLifetime
impl Clone for CreatableStateLifetime
source§fn clone(&self) -> CreatableStateLifetime
fn clone(&self) -> CreatableStateLifetime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreatableStateLifetime
impl Debug for CreatableStateLifetime
source§impl From<CreatableStateLifetime> for StateLifetime
impl From<CreatableStateLifetime> for StateLifetime
source§fn from(lifetime: CreatableStateLifetime) -> Self
fn from(lifetime: CreatableStateLifetime) -> Self
Converts to this type from the input type.
source§impl Hash for CreatableStateLifetime
impl Hash for CreatableStateLifetime
source§impl PartialEq<CreatableStateLifetime> for CreatableStateLifetime
impl PartialEq<CreatableStateLifetime> for CreatableStateLifetime
source§fn eq(&self, other: &CreatableStateLifetime) -> bool
fn eq(&self, other: &CreatableStateLifetime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.