pub enum KeyValueData {
Show 13 variants
RegNone,
RegSZ(String),
RegExpandSZ(String),
RegBinary(Vec<u8>),
RegDWord(u32),
RegDWordBigEndian(u32),
RegLink(String),
RegMultiSZ(Vec<String>),
RegResourceList(String),
RegFullResourceDescriptor(String),
RegResourceRequirementsList(String),
RegQWord(u64),
RegFileTime(DateTime<Utc>),
}
Expand description
Represents a binary registry datum
let mut reader = Cursor::new(b"Test\0");
let parsed_data: KeyValueData = reader.read_ne_args((KeyValueDataType::RegSZ, 5)).unwrap();
assert_eq!(parsed_data, KeyValueData::RegSZ("Test".to_string()));
Variants§
RegNone
RegSZ(String)
RegExpandSZ(String)
RegBinary(Vec<u8>)
RegDWord(u32)
RegDWordBigEndian(u32)
RegLink(String)
RegMultiSZ(Vec<String>)
RegResourceList(String)
RegFullResourceDescriptor(String)
RegResourceRequirementsList(String)
RegQWord(u64)
RegFileTime(DateTime<Utc>)
Trait Implementations§
source§impl BinRead for KeyValueData
impl BinRead for KeyValueData
§type Args = (KeyValueDataType, u32)
type Args = (KeyValueDataType, u32)
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
source§fn read_options<R: Read + Seek>(
reader: &mut R,
options: &ReadOptions,
args: Self::Args
) -> BinResult<Self>
fn read_options<R: Read + Seek>( reader: &mut R, options: &ReadOptions, args: Self::Args ) -> BinResult<Self>
Read the type from the reader
source§fn read<R>(reader: &mut R) -> Result<Self, Error>where
R: Read + Seek,
fn read<R>(reader: &mut R) -> Result<Self, Error>where R: Read + Seek,
Read the type from the reader while assuming no arguments have been passed Read more
source§fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>where
R: Read + Seek,
fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>where R: Read + Seek,
Read the type from the reader using the specified arguments
fn after_parse<R>( &mut self, _: &mut R, _: &ReadOptions, _: Self::Args ) -> Result<(), Error>where R: Read + Seek,
source§impl Debug for KeyValueData
impl Debug for KeyValueData
source§impl Display for KeyValueData
impl Display for KeyValueData
source§impl PartialEq<KeyValueData> for KeyValueData
impl PartialEq<KeyValueData> for KeyValueData
source§fn eq(&self, other: &KeyValueData) -> bool
fn eq(&self, other: &KeyValueData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeyValueData
impl Serialize for KeyValueData
impl Eq for KeyValueData
impl StructuralEq for KeyValueData
impl StructuralPartialEq for KeyValueData
Auto Trait Implementations§
impl RefUnwindSafe for KeyValueData
impl Send for KeyValueData
impl Sync for KeyValueData
impl Unpin for KeyValueData
impl UnwindSafe for KeyValueData
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