Struct wnf::StateNameDescriptor
source · pub struct StateNameDescriptor {
pub version: u8,
pub lifetime: StateLifetime,
pub data_scope: DataScope,
pub is_permanent: bool,
pub unique_id: u32,
pub owner_tag: u32,
}
Expand description
The descriptor of a state name
This contains the properties of a StateName
that are encoded in the bits of its transparent value.
Fields§
§version: u8
WNF version number, currently always 1
lifetime: StateLifetime
Lifetime of the state name
data_scope: DataScope
Data scope of the state name
is_permanent: bool
Whether the state data (not the state name itself) are persisted across system reboots
This only applies to state names with the StateLifetime::WellKnown
or
StateLifetime::Permanent
lifetimes. It is always false
for state names with other lifetimes.
unique_id: u32
Unique sequence number of the state name
owner_tag: u32
Owner tag of the state name
This only applies to state names with the StateLifetime::WellKnown
lifetime. It is always 0
for
state names with other lifetimes.
Trait Implementations§
source§impl Clone for StateNameDescriptor
impl Clone for StateNameDescriptor
source§fn clone(&self) -> StateNameDescriptor
fn clone(&self) -> StateNameDescriptor
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 StateNameDescriptor
impl Debug for StateNameDescriptor
source§impl Hash for StateNameDescriptor
impl Hash for StateNameDescriptor
source§impl PartialEq for StateNameDescriptor
impl PartialEq for StateNameDescriptor
source§fn eq(&self, other: &StateNameDescriptor) -> bool
fn eq(&self, other: &StateNameDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<StateName> for StateNameDescriptor
impl TryFrom<StateName> for StateNameDescriptor
source§impl TryFrom<StateNameDescriptor> for StateName
impl TryFrom<StateNameDescriptor> for StateName
§type Error = StateNameFromDescriptorError
type Error = StateNameFromDescriptorError
The type returned in the event of a conversion error.
impl Copy for StateNameDescriptor
impl Eq for StateNameDescriptor
impl StructuralPartialEq for StateNameDescriptor
Auto Trait Implementations§
impl Freeze for StateNameDescriptor
impl RefUnwindSafe for StateNameDescriptor
impl Send for StateNameDescriptor
impl Sync for StateNameDescriptor
impl Unpin for StateNameDescriptor
impl UnwindSafe for StateNameDescriptor
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