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
Lifetime of a permanent state, see StateLifetime::Permanent
Fields
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 for CreatableStateLifetime
impl PartialEq 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 ==
.impl Copy for CreatableStateLifetime
impl Eq for CreatableStateLifetime
impl StructuralPartialEq for CreatableStateLifetime
Auto Trait Implementations§
impl Freeze for CreatableStateLifetime
impl RefUnwindSafe for CreatableStateLifetime
impl Send for CreatableStateLifetime
impl Sync for CreatableStateLifetime
impl Unpin for CreatableStateLifetime
impl UnwindSafe for CreatableStateLifetime
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