Enum winsafe::RegistryValue
source · pub enum RegistryValue {
Binary(Vec<u8>),
Dword(u32),
Qword(u64),
Sz(String),
ExpandSz(String),
MultiSz(Vec<String>),
None,
}
Available on crate feature
kernel
only.Expand description
Registry value types.
This is a high-level abstraction over the co::REG
constants, plus the value they carry.
Variants§
Binary(Vec<u8>)
Binary value, defined as REG::BINARY
.
Dword(u32)
An u32
integer value, defined as REG::DWORD
.
Qword(u64)
An u64
integer value, defined as REG::QWORD
.
Sz(String)
String value, defined as REG::SZ
.
ExpandSz(String)
String value that contains unexpanded references to environment
variables, for example, %PATH%
. To expand the environment variable
references, use
ExpandEnvironmentStrings
.
MultiSz(Vec<String>)
Multiple strings, defined as REG::MULTI_SZ
.
None
No value, defined as REG::NONE
. Also used for
non-implemented value types.
Implementations§
source§impl RegistryValue
impl RegistryValue
Trait Implementations§
source§impl Clone for RegistryValue
impl Clone for RegistryValue
source§fn clone(&self) -> RegistryValue
fn clone(&self) -> RegistryValue
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 RegistryValue
impl Debug for RegistryValue
Auto Trait Implementations§
impl Freeze for RegistryValue
impl RefUnwindSafe for RegistryValue
impl Send for RegistryValue
impl Sync for RegistryValue
impl Unpin for RegistryValue
impl UnwindSafe for RegistryValue
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