pub struct Capability(/* private fields */);Expand description
An opaque, named platform capability, constructed from crate-provided constants. The consumer never sees the underlying SID or grant.
Capabilities are Windows LPAC concepts; on other platforms they are a no-op.
Implementations§
Source§impl Capability
impl Capability
Sourcepub const LPAC_COM: Capability
pub const LPAC_COM: Capability
The lpacCom capability — COM activation under LPAC.
Sourcepub const LPAC_CRYPTO_SERVICES: Capability
pub const LPAC_CRYPTO_SERVICES: Capability
The lpacCryptoServices capability — cryptographic service access
under LPAC.
Sourcepub const REGISTRY_READ: Capability
pub const REGISTRY_READ: Capability
The registryRead capability — read access to policy under the
registry.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Capability
impl Debug for Capability
Source§impl PartialEq for Capability
impl PartialEq for Capability
Source§fn eq(&self, other: &Capability) -> bool
fn eq(&self, other: &Capability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Capability
impl Eq for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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