Enum winsafe::RegistryValue[][src]

pub enum RegistryValue {
    Binary(Vec<u8>),
    Dword(u32),
    Qword(u64),
    Sz(WString),
    None,
}
Expand description

Registry value types.

Variants

Binary(Vec<u8>)

Binary value, defined as REG::BINARY.

Tuple Fields of Binary

0: Vec<u8>
Dword(u32)

An u32 integer value, defined as REG::DWORD.

Tuple Fields of Dword

0: u32
Qword(u64)

An u64 integer value, defined as REG::QWORD.

Tuple Fields of Qword

0: u64

String value, defined as REG::SZ.

Tuple Fields of Sz

0: WString
None

No value, defined as REG::NONE. Also used for non-implemented value types.

Implementations

Creates a new RegistryValue::Sz value from a &str.

Returns the correspondent co::REG constant.

Returns the length of the stored data.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.