pub enum AceValue {
Show 15 variants
AccessAllowed(AccessAce),
AccessDenied(AccessAce),
SystemAudit(AccessAce),
AccessAllowedObject(AccessObjectAce),
AccessDeniedObject(AccessObjectAce),
SystemAuditObject(AccessObjectAce),
AccessAllowedCallback(AccessCallbackAce),
AccessDeniedCallback(AccessCallbackAce),
AccessAllowedCallbackObject(AccessObjectCallbackAce),
AccessDeniedCallbackObject(AccessObjectCallbackAce),
SystemAuditCallback(AccessCallbackAce),
SystemAuditCallbackObject(AccessObjectCallbackAce),
SystemMandatoryLabel(SystemMandatoryLabelAce),
SystemResourceAttribute(SystemResourceAttributeAce),
SystemScopedPolicyId(AccessAce),
}Variants§
AccessAllowed(AccessAce)
AccessDenied(AccessAce)
SystemAudit(AccessAce)
AccessAllowedObject(AccessObjectAce)
AccessDeniedObject(AccessObjectAce)
SystemAuditObject(AccessObjectAce)
AccessAllowedCallback(AccessCallbackAce)
AccessDeniedCallback(AccessCallbackAce)
AccessAllowedCallbackObject(AccessObjectCallbackAce)
AccessDeniedCallbackObject(AccessObjectCallbackAce)
SystemAuditCallback(AccessCallbackAce)
SystemAuditCallbackObject(AccessObjectCallbackAce)
SystemMandatoryLabel(SystemMandatoryLabelAce)
SystemResourceAttribute(SystemResourceAttributeAce)
SystemScopedPolicyId(AccessAce)
Implementations§
Source§impl AceValue
impl AceValue
pub fn get_type(&self) -> AceType
pub fn unwrap_access_allowed(&self) -> &AccessAce
pub fn as_access_allowed(&self) -> Option<&AccessAce>
pub fn as_mut_access_allowed(&mut self) -> Option<&mut AccessAce>
pub fn unwrap_access_denied(&self) -> &AccessAce
pub fn as_access_denied(&self) -> Option<&AccessAce>
pub fn as_mut_access_denied(&mut self) -> Option<&mut AccessAce>
pub fn unwrap_system_audit(&self) -> &AccessAce
pub fn as_system_audit(&self) -> Option<&AccessAce>
pub fn as_mut_system_audit(&mut self) -> Option<&mut AccessAce>
pub fn unwrap_access_allowed_object(&self) -> &AccessObjectAce
pub fn as_access_allowed_object(&self) -> Option<&AccessObjectAce>
pub fn as_mut_access_allowed_object(&mut self) -> Option<&mut AccessObjectAce>
pub fn unwrap_access_denied_object(&self) -> &AccessObjectAce
pub fn as_access_denied_object(&self) -> Option<&AccessObjectAce>
pub fn as_mut_access_denied_object(&mut self) -> Option<&mut AccessObjectAce>
pub fn unwrap_system_audit_object(&self) -> &AccessObjectAce
pub fn as_system_audit_object(&self) -> Option<&AccessObjectAce>
pub fn as_mut_system_audit_object(&mut self) -> Option<&mut AccessObjectAce>
pub fn unwrap_access_allowed_callback(&self) -> &AccessCallbackAce
pub fn as_access_allowed_callback(&self) -> Option<&AccessCallbackAce>
pub fn as_mut_access_allowed_callback( &mut self, ) -> Option<&mut AccessCallbackAce>
pub fn unwrap_access_denied_callback(&self) -> &AccessCallbackAce
pub fn as_access_denied_callback(&self) -> Option<&AccessCallbackAce>
pub fn as_mut_access_denied_callback( &mut self, ) -> Option<&mut AccessCallbackAce>
pub fn unwrap_access_allowed_callback_object(&self) -> &AccessObjectCallbackAce
pub fn as_access_allowed_callback_object( &self, ) -> Option<&AccessObjectCallbackAce>
pub fn as_mut_access_allowed_callback_object( &mut self, ) -> Option<&mut AccessObjectCallbackAce>
pub fn unwrap_access_denied_callback_object(&self) -> &AccessObjectCallbackAce
pub fn as_access_denied_callback_object( &self, ) -> Option<&AccessObjectCallbackAce>
pub fn as_mut_access_denied_callback_object( &mut self, ) -> Option<&mut AccessObjectCallbackAce>
pub fn unwrap_system_audit_callback(&self) -> &AccessCallbackAce
pub fn as_system_audit_callback(&self) -> Option<&AccessCallbackAce>
pub fn as_mut_system_audit_callback(&mut self) -> Option<&mut AccessCallbackAce>
pub fn unwrap_system_audit_callback_object(&self) -> &AccessObjectCallbackAce
pub fn as_system_audit_callback_object( &self, ) -> Option<&AccessObjectCallbackAce>
pub fn as_mut_system_audit_callback_object( &mut self, ) -> Option<&mut AccessObjectCallbackAce>
pub fn unwrap_system_mandatory_label(&self) -> &SystemMandatoryLabelAce
pub fn as_system_mandatory_label(&self) -> Option<&SystemMandatoryLabelAce>
pub fn as_mut_system_mandatory_label( &mut self, ) -> Option<&mut SystemMandatoryLabelAce>
pub fn unwrap_system_resource_attribute(&self) -> &SystemResourceAttributeAce
pub fn as_system_resource_attribute( &self, ) -> Option<&SystemResourceAttributeAce>
pub fn as_mut_system_resource_attribute( &mut self, ) -> Option<&mut SystemResourceAttributeAce>
pub fn unwrap_system_scoped_policy_id(&self) -> &AccessAce
pub fn as_system_scoped_policy_id(&self) -> Option<&AccessAce>
pub fn as_mut_system_scoped_policy_id(&mut self) -> Option<&mut AccessAce>
Source§impl AceValue
impl AceValue
Sourcepub fn is_access_allowed(&self) -> bool
pub fn is_access_allowed(&self) -> bool
Returns true if the ACE is an “access allowed” type.
Sourcepub fn is_access_denied(&self) -> bool
pub fn is_access_denied(&self) -> bool
Returns true if the ACE is an “access denied” type.
Trait Implementations§
Source§impl BinRead for AceValue
impl BinRead for AceValue
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for AceValue
impl BinWrite for AceValue
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreimpl Eq for AceValue
impl StructuralPartialEq for AceValue
Auto Trait Implementations§
impl Freeze for AceValue
impl RefUnwindSafe for AceValue
impl Send for AceValue
impl Sync for AceValue
impl Unpin for AceValue
impl UnwindSafe for AceValue
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