pub struct RegistryKey(/* private fields */);Expand description
An open registry key.
This is constructed using OpenRegistryKey.
Implementations§
Source§impl RegistryKey
impl RegistryKey
Sourcepub fn current_user<K>(key: K) -> Result<RegistryKey>
pub fn current_user<K>(key: K) -> Result<RegistryKey>
Open the given key in the HKEY_CURRENT_USER scope.
Sourcepub fn local_machine<K>(key: K) -> Result<RegistryKey>
pub fn local_machine<K>(key: K) -> Result<RegistryKey>
Open the given key in the HKEY_LOCAL_MACHINE scope.
Sourcepub fn get_string<N>(&self, name: N) -> Result<OsString>
pub fn get_string<N>(&self, name: N) -> Result<OsString>
Get the given value as a string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegistryKey
impl RefUnwindSafe for RegistryKey
impl Unpin for RegistryKey
impl UnwindSafe for RegistryKey
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