pub struct WindowsPrivilege(/* private fields */);Expand description
A Windows access token privilege.
Wraps a privilege LUID’s LowPart. HighPart is always zero for
privilege LUIDs.
Implementations§
Source§impl WindowsPrivilege
impl WindowsPrivilege
Sourcepub const CREATE_TOKEN: Self
pub const CREATE_TOKEN: Self
Corresponds to SE_CREATE_TOKEN_PRIVILEGE.
Sourcepub const ASSIGNPRIMARYTOKEN: Self
pub const ASSIGNPRIMARYTOKEN: Self
Corresponds to SE_ASSIGNPRIMARYTOKEN_PRIVILEGE.
Sourcepub const LOCK_MEMORY: Self
pub const LOCK_MEMORY: Self
Corresponds to SE_LOCK_MEMORY_PRIVILEGE.
Sourcepub const INCREASE_QUOTA: Self
pub const INCREASE_QUOTA: Self
Corresponds to SE_INCREASE_QUOTA_PRIVILEGE.
Sourcepub const MACHINE_ACCOUNT: Self
pub const MACHINE_ACCOUNT: Self
Corresponds to SE_MACHINE_ACCOUNT_PRIVILEGE.
Sourcepub const TAKE_OWNERSHIP: Self
pub const TAKE_OWNERSHIP: Self
Corresponds to SE_TAKE_OWNERSHIP_PRIVILEGE.
Sourcepub const LOAD_DRIVER: Self
pub const LOAD_DRIVER: Self
Corresponds to SE_LOAD_DRIVER_PRIVILEGE.
Sourcepub const SYSTEM_PROFILE: Self
pub const SYSTEM_PROFILE: Self
Corresponds to SE_SYSTEM_PROFILE_PRIVILEGE.
Sourcepub const SYSTEMTIME: Self
pub const SYSTEMTIME: Self
Corresponds to SE_SYSTEMTIME_PRIVILEGE.
Sourcepub const PROF_SINGLE_PROCESS: Self
pub const PROF_SINGLE_PROCESS: Self
Corresponds to SE_PROF_SINGLE_PROCESS_PRIVILEGE.
Sourcepub const INC_BASE_PRIORITY: Self
pub const INC_BASE_PRIORITY: Self
Corresponds to SE_INC_BASE_PRIORITY_PRIVILEGE.
Sourcepub const CREATE_PAGEFILE: Self
pub const CREATE_PAGEFILE: Self
Corresponds to SE_CREATE_PAGEFILE_PRIVILEGE.
Sourcepub const CREATE_PERMANENT: Self
pub const CREATE_PERMANENT: Self
Corresponds to SE_CREATE_PERMANENT_PRIVILEGE.
Sourcepub const SYSTEM_ENVIRONMENT: Self
pub const SYSTEM_ENVIRONMENT: Self
Corresponds to SE_SYSTEM_ENVIRONMENT_PRIVILEGE.
Sourcepub const CHANGE_NOTIFY: Self
pub const CHANGE_NOTIFY: Self
Corresponds to SE_CHANGE_NOTIFY_PRIVILEGE.
Sourcepub const REMOTE_SHUTDOWN: Self
pub const REMOTE_SHUTDOWN: Self
Corresponds to SE_REMOTE_SHUTDOWN_PRIVILEGE.
Sourcepub const SYNC_AGENT: Self
pub const SYNC_AGENT: Self
Corresponds to SE_SYNC_AGENT_PRIVILEGE.
Sourcepub const ENABLE_DELEGATION: Self
pub const ENABLE_DELEGATION: Self
Corresponds to SE_ENABLE_DELEGATION_PRIVILEGE.
Sourcepub const MANAGE_VOLUME: Self
pub const MANAGE_VOLUME: Self
Corresponds to SE_MANAGE_VOLUME_PRIVILEGE.
Sourcepub const IMPERSONATE: Self
pub const IMPERSONATE: Self
Corresponds to SE_IMPERSONATE_PRIVILEGE.
Sourcepub const CREATE_GLOBAL: Self
pub const CREATE_GLOBAL: Self
Corresponds to SE_CREATE_GLOBAL_PRIVILEGE.
Sourcepub const TRUSTED_CREDMAN_ACCESS: Self
pub const TRUSTED_CREDMAN_ACCESS: Self
Corresponds to SE_TRUSTED_CREDMAN_ACCESS_PRIVILEGE.
Sourcepub const INC_WORKING_SET: Self
pub const INC_WORKING_SET: Self
Corresponds to SE_INC_WORKING_SET_PRIVILEGE.
Sourcepub const CREATE_SYMBOLIC_LINK: Self
pub const CREATE_SYMBOLIC_LINK: Self
Corresponds to SE_CREATE_SYMBOLIC_LINK_PRIVILEGE.
Sourcepub const DELEGATE_SESSION_USER_IMPERSONATE: Self
pub const DELEGATE_SESSION_USER_IMPERSONATE: Self
Corresponds to SE_DELEGATE_SESSION_USER_IMPERSONATE_PRIVILEGE.
Trait Implementations§
Source§impl Clone for WindowsPrivilege
impl Clone for WindowsPrivilege
Source§fn clone(&self) -> WindowsPrivilege
fn clone(&self) -> WindowsPrivilege
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WindowsPrivilege
Source§impl Debug for WindowsPrivilege
impl Debug for WindowsPrivilege
impl Eq for WindowsPrivilege
Source§impl Hash for WindowsPrivilege
impl Hash for WindowsPrivilege
Source§impl PartialEq for WindowsPrivilege
impl PartialEq for WindowsPrivilege
Source§fn eq(&self, other: &WindowsPrivilege) -> bool
fn eq(&self, other: &WindowsPrivilege) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WindowsPrivilege
Auto Trait Implementations§
impl Freeze for WindowsPrivilege
impl RefUnwindSafe for WindowsPrivilege
impl Send for WindowsPrivilege
impl Sync for WindowsPrivilege
impl Unpin for WindowsPrivilege
impl UnsafeUnpin for WindowsPrivilege
impl UnwindSafe for WindowsPrivilege
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.