Struct winsafe::co::RID

source ·
pub struct RID(/* private fields */);
Available on crate feature kernel only.
Expand description

The portion of a SID that identifies a user or group in relation to the authority that issued the SID.

Originally has RID suffix.

Implementations§

source§

impl RID

source

pub const unsafe fn from_raw(v: u32) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

source

pub const fn raw(&self) -> u32

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

source§

impl RID

source

pub const SECURITY_NULL: Self = _

source

pub const SECURITY_WORLD: Self = _

source

pub const SECURITY_LOCAL: Self = _

source

pub const SECURITY_LOCAL_LOGON: Self = _

source

pub const SECURITY_CREATOR_OWNER: Self = _

source

pub const SECURITY_CREATOR_GROUP: Self = _

source

pub const SECURITY_CREATOR_OWNER_SERVER: Self = _

source

pub const SECURITY_CREATOR_GROUP_SERVER: Self = _

source

pub const SECURITY_CREATOR_OWNER_RIGHTS: Self = _

source

pub const SECURITY_DIALUP: Self = _

source

pub const SECURITY_NETWORK: Self = _

source

pub const SECURITY_BATCH: Self = _

source

pub const SECURITY_INTERACTIVE: Self = _

source

pub const SECURITY_LOGON_IDS: Self = _

source

pub const SECURITY_SERVICE: Self = _

source

pub const SECURITY_ANONYMOUS_LOGON: Self = _

source

pub const SECURITY_PROXY: Self = _

source

pub const SECURITY_ENTERPRISE_CONTROLLERS: Self = _

source

pub const SECURITY_SERVER_LOGON: Self = _

source

pub const SECURITY_PRINCIPAL_SELF: Self = _

source

pub const SECURITY_AUTHENTICATED_USER: Self = _

source

pub const SECURITY_RESTRICTED_CODE: Self = _

source

pub const SECURITY_TERMINAL_SERVER: Self = _

source

pub const SECURITY_REMOTE_LOGON: Self = _

source

pub const SECURITY_THIS_ORGANIZATION: Self = _

source

pub const SECURITY_IUSER: Self = _

source

pub const SECURITY_LOCAL_SYSTEM: Self = _

source

pub const SECURITY_LOCAL_SERVICE: Self = _

source

pub const SECURITY_NETWORK_SERVICE: Self = _

source

pub const SECURITY_NT_NON_UNIQUE: Self = _

source

pub const SECURITY_ENTERPRISE_READONLY_CONTROLLERS: Self = _

source

pub const SECURITY_BUILTIN_DOMAIN: Self = _

source

pub const SECURITY_WRITE_RESTRICTED_CODE: Self = _

source

pub const SECURITY_PACKAGE_BASE: Self = _

source

pub const SECURITY_PACKAGE_NTLM: Self = _

source

pub const SECURITY_PACKAGE_SCHANNEL: Self = _

source

pub const SECURITY_PACKAGE_DIGEST: Self = _

source

pub const SECURITY_CRED_TYPE_BASE: Self = _

source

pub const SECURITY_CRED_TYPE_THIS_ORG_CERT: Self = _

source

pub const SECURITY_MIN_BASE: Self = _

source

pub const SECURITY_SERVICE_ID_BASE: Self = _

source

pub const SECURITY_RESERVED_ID_BASE: Self = _

source

pub const SECURITY_APPPOOL_ID_BASE: Self = _

source

pub const SECURITY_VIRTUALSERVER_ID_BASE: Self = _

source

pub const SECURITY_USERMODEDRIVERHOST_ID_BASE: Self = _

source

pub const SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE: Self = _

source

pub const SECURITY_WMIHOST_ID_BASE: Self = _

source

pub const SECURITY_TASK_ID_BASE: Self = _

source

pub const SECURITY_NFS_ID_BASE: Self = _

source

pub const SECURITY_COM_ID_BASE: Self = _

source

pub const SECURITY_WINDOW_MANAGER_BASE: Self = _

source

pub const SECURITY_RDV_GFX_BASE: Self = _

source

pub const SECURITY_DASHOST_ID_BASE: Self = _

source

pub const SECURITY_USERMANAGER_ID_BASE: Self = _

source

pub const SECURITY_WINRM_ID_BASE: Self = _

source

pub const SECURITY_CCG_ID_BASE: Self = _

source

pub const SECURITY_UMFD_BASE: Self = _

source

pub const SECURITY_MAX_BASE: Self = _

source

pub const SECURITY_MAX_ALWAYS_FILTERED: Self = _

source

pub const SECURITY_MIN_NEVER_FILTERED: Self = _

source

pub const SECURITY_OTHER_ORGANIZATION: Self = _

source

pub const SECURITY_WINDOWSMOBILE_ID_BASE: Self = _

source

pub const SECURITY_LOCAL_ACCOUNT: Self = _

source

pub const SECURITY_LOCAL_ACCOUNT_AND_ADMIN: Self = _

source

pub const DOMAIN_GROUP_AUTHORIZATION_DATA_IS_COMPOUNDED: Self = _

source

pub const DOMAIN_GROUP_AUTHORIZATION_DATA_CONTAINS_CLAIMS: Self = _

source

pub const DOMAIN_GROUP_ENTERPRISE_READONLY_DOMAIN_CONTROLLERS: Self = _

source

pub const DOMAIN_USER_ADMIn: Self = _

source

pub const DOMAIN_USER_GUEST: Self = _

source

pub const DOMAIN_USER_KRBTGT: Self = _

source

pub const DOMAIN_USER_DEFAULT_ACCOUNT: Self = _

source

pub const DOMAIN_USER_WDAG_ACCOUNT: Self = _

source

pub const DOMAIN_GROUP_ADMINS: Self = _

source

pub const DOMAIN_GROUP_USERS: Self = _

source

pub const DOMAIN_GROUP_GUESTS: Self = _

source

pub const DOMAIN_GROUP_COMPUTERS: Self = _

source

pub const DOMAIN_GROUP_CONTROLLERS: Self = _

source

pub const DOMAIN_GROUP_CERT_ADMINS: Self = _

source

pub const DOMAIN_GROUP_SCHEMA_ADMINS: Self = _

source

pub const DOMAIN_GROUP_ENTERPRISE_ADMINS: Self = _

source

pub const DOMAIN_GROUP_POLICY_ADMINS: Self = _

source

pub const DOMAIN_GROUP_READONLY_CONTROLLERS: Self = _

source

pub const DOMAIN_GROUP_CLONEABLE_CONTROLLERS: Self = _

source

pub const DOMAIN_GROUP_CDC_RESERVED: Self = _

source

pub const DOMAIN_GROUP_PROTECTED_USERS: Self = _

source

pub const DOMAIN_GROUP_KEY_ADMINS: Self = _

source

pub const DOMAIN_GROUP_ENTERPRISE_KEY_ADMINS: Self = _

source

pub const DOMAIN_ALIAS_ADMINS: Self = _

source

pub const DOMAIN_ALIAS_USERS: Self = _

source

pub const DOMAIN_ALIAS_GUESTS: Self = _

source

pub const DOMAIN_ALIAS_POWER_USERS: Self = _

source

pub const DOMAIN_ALIAS_ACCOUNT_OPS: Self = _

source

pub const DOMAIN_ALIAS_SYSTEM_OPS: Self = _

source

pub const DOMAIN_ALIAS_PRINT_OPS: Self = _

source

pub const DOMAIN_ALIAS_BACKUP_OPS: Self = _

source

pub const DOMAIN_ALIAS_REPLICATOR: Self = _

source

pub const DOMAIN_ALIAS_RAS_SERVERS: Self = _

source

pub const DOMAIN_ALIAS_PREW2KCOMPACCESS: Self = _

source

pub const DOMAIN_ALIAS_REMOTE_DESKTOP_USERS: Self = _

source

pub const DOMAIN_ALIAS_NETWORK_CONFIGURATION_OPS: Self = _

source

pub const DOMAIN_ALIAS_INCOMING_FOREST_TRUST_BUILDERS: Self = _

source

pub const DOMAIN_ALIAS_MONITORING_USERS: Self = _

source

pub const DOMAIN_ALIAS_LOGGING_USERS: Self = _

source

pub const DOMAIN_ALIAS_AUTHORIZATIONACCESS: Self = _

source

pub const DOMAIN_ALIAS_TS_LICENSE_SERVERS: Self = _

source

pub const DOMAIN_ALIAS_DCOM_USERS: Self = _

source

pub const DOMAIN_ALIAS_IUSERS: Self = _

source

pub const DOMAIN_ALIAS_CRYPTO_OPERATORS: Self = _

source

pub const DOMAIN_ALIAS_CACHEABLE_PRINCIPALS_GROUP: Self = _

source

pub const DOMAIN_ALIAS_NON_CACHEABLE_PRINCIPALS_GROUP: Self = _

source

pub const DOMAIN_ALIAS_EVENT_LOG_READERS_GROUP: Self = _

source

pub const DOMAIN_ALIAS_CERTSVC_DCOM_ACCESS_GROUP: Self = _

source

pub const DOMAIN_ALIAS_RDS_REMOTE_ACCESS_SERVERS: Self = _

source

pub const DOMAIN_ALIAS_RDS_ENDPOINT_SERVERS: Self = _

source

pub const DOMAIN_ALIAS_RDS_MANAGEMENT_SERVERS: Self = _

source

pub const DOMAIN_ALIAS_HYPER_V_ADMINS: Self = _

source

pub const DOMAIN_ALIAS_ACCESS_CONTROL_ASSISTANCE_OPS: Self = _

source

pub const DOMAIN_ALIAS_REMOTE_MANAGEMENT_USERS: Self = _

source

pub const DOMAIN_ALIAS_DEFAULT_ACCOUNT: Self = _

source

pub const DOMAIN_ALIAS_STORAGE_REPLICA_ADMINS: Self = _

source

pub const DOMAIN_ALIAS_DEVICE_OWNERS: Self = _

source

pub const SECURITY_APP_PACKAGE_BASE: Self = _

source

pub const SECURITY_CAPABILITY_BASE: Self = _

source

pub const SECURITY_CAPABILITY_APP: Self = _

source

pub const SECURITY_BUILTIN_PACKAGE_ANY_PACKAGE: Self = _

source

pub const SECURITY_BUILTIN_PACKAGE_ANY_RESTRICTED_PACKAGE: Self = _

source

pub const SECURITY_CAPABILITY_INTERNET_CLIENT: Self = _

source

pub const SECURITY_CAPABILITY_INTERNET_CLIENT_SERVER: Self = _

source

pub const SECURITY_CAPABILITY_PRIVATE_NETWORK_CLIENT_SERVER: Self = _

source

pub const SECURITY_CAPABILITY_PICTURES_LIBRARY: Self = _

source

pub const SECURITY_CAPABILITY_VIDEOS_LIBRARY: Self = _

source

pub const SECURITY_CAPABILITY_MUSIC_LIBRARY: Self = _

source

pub const SECURITY_CAPABILITY_DOCUMENTS_LIBRARY: Self = _

source

pub const SECURITY_CAPABILITY_ENTERPRISE_AUTHENTICATION: Self = _

source

pub const SECURITY_CAPABILITY_SHARED_USER_CERTIFICATES: Self = _

source

pub const SECURITY_CAPABILITY_REMOVABLE_STORAGE: Self = _

source

pub const SECURITY_CAPABILITY_APPOINTMENTS: Self = _

source

pub const SECURITY_CAPABILITY_CONTACTS: Self = _

source

pub const SECURITY_CAPABILITY_INTERNET_EXPLORER: Self = _

source

pub const SECURITY_AUTHENTICATION_AUTHORITY_ASSERTED: Self = _

source

pub const SECURITY_AUTHENTICATION_SERVICE_ASSERTED: Self = _

source

pub const SECURITY_AUTHENTICATION_FRESH_KEY_AUTH: Self = _

source

pub const SECURITY_AUTHENTICATION_KEY_TRUST: Self = _

source

pub const SECURITY_AUTHENTICATION_KEY_PROPERTY_MFA: Self = _

source

pub const SECURITY_AUTHENTICATION_KEY_PROPERTY_ATTESTATION: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_TYPE_FULL: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_TYPE_LITE: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_TYPE_NONE: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_LEVEL_WINTCB: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_LEVEL_WINDOWS: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_LEVEL_APP: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_LEVEL_ANTIMALWARE: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_LEVEL_AUTHENTICODE: Self = _

source

pub const SECURITY_PROCESS_PROTECTION_LEVEL_NONE: Self = _

source

pub const SECURITY_TRUSTED_INSTALLER_1: Self = _

source

pub const SECURITY_TRUSTED_INSTALLER_2: Self = _

source

pub const SECURITY_TRUSTED_INSTALLER_3: Self = _

source

pub const SECURITY_TRUSTED_INSTALLER_4: Self = _

source

pub const SECURITY_TRUSTED_INSTALLER_5: Self = _

Trait Implementations§

source§

impl AsRef<u32> for RID

source§

fn as_ref(&self) -> &u32

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Binary for RID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Clone for RID

source§

fn clone(&self) -> RID

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RID

source§

fn default() -> RID

Returns the “default value” for a type. Read more
source§

impl Display for RID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<RID> for u32

source§

fn from(v: RID) -> Self

Converts to this type from the input type.
source§

impl Hash for RID

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntUnderlying for RID

§

type Raw = u32

The underlying raw integer type.
source§

unsafe fn as_mut(&mut self) -> &mut Self::Raw

Returns a mutable reference to the underlying raw value. Read more
source§

impl LowerHex for RID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Octal for RID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Ord for RID

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for RID

source§

fn eq(&self, other: &RID) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for RID

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl UpperHex for RID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for RID

source§

impl Eq for RID

source§

impl NativeConst for RID

source§

impl Send for RID

source§

impl StructuralPartialEq for RID

Auto Trait Implementations§

§

impl Freeze for RID

§

impl RefUnwindSafe for RID

§

impl Sync for RID

§

impl Unpin for RID

§

impl UnwindSafe for RID

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.