pub enum PolicyKeyOpen {
Opened,
Absent,
Unreadable(u32),
}Expand description
What opening a policy key means for the guard, from the status RegOpenKeyExW returned.
Variants§
Opened
The key is open and its values are to be read.
Absent
ERROR_FILE_NOT_FOUND: the key does not exist, so there is no policy. The only status
that means that.
Unreadable(u32)
Anything else (access denied, a registry failure): what the policy says is unknown, and the guard refuses to start.
Implementations§
Source§impl PolicyKeyOpen
impl PolicyKeyOpen
pub fn from_status(status: u32) -> Self
Trait Implementations§
Source§impl Clone for PolicyKeyOpen
impl Clone for PolicyKeyOpen
impl Copy for PolicyKeyOpen
Source§impl Debug for PolicyKeyOpen
impl Debug for PolicyKeyOpen
impl Eq for PolicyKeyOpen
Source§impl PartialEq for PolicyKeyOpen
impl PartialEq for PolicyKeyOpen
impl StructuralPartialEq for PolicyKeyOpen
Auto Trait Implementations§
impl Freeze for PolicyKeyOpen
impl RefUnwindSafe for PolicyKeyOpen
impl Send for PolicyKeyOpen
impl Sync for PolicyKeyOpen
impl Unpin for PolicyKeyOpen
impl UnsafeUnpin for PolicyKeyOpen
impl UnwindSafe for PolicyKeyOpen
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.