pub struct SysDescriptor(/* private fields */);
Implementations§
Source§impl SysDescriptor
impl SysDescriptor
pub fn parse(kind: String) -> Result<Self, SysDescriptorParseError>
pub fn into_string(self) -> String
Trait Implementations§
Source§impl AllowDescriptor for SysDescriptor
impl AllowDescriptor for SysDescriptor
type QueryDesc<'a> = SysDescriptor
type DenyDesc = SysDescriptor
Source§impl Clone for SysDescriptor
impl Clone for SysDescriptor
Source§fn clone(&self) -> SysDescriptor
fn clone(&self) -> SysDescriptor
Returns a duplicate of the value. Read more
1.0.0 · 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 SysDescriptor
impl Debug for SysDescriptor
Source§impl Hash for SysDescriptor
impl Hash for SysDescriptor
Source§impl PartialEq for SysDescriptor
impl PartialEq for SysDescriptor
Source§impl QueryDescriptor for SysDescriptor
impl QueryDescriptor for SysDescriptor
type AllowDesc = SysDescriptor
type DenyDesc = SysDescriptor
fn flag_name() -> &'static str
fn display_name(&self) -> Cow<'_, str>
fn from_allow(allow: &Self::AllowDesc) -> Self
fn as_allow(&self) -> Option<Self::AllowDesc>
fn as_deny(&self) -> Self::DenyDesc
Source§fn check_in_permission(
&self,
perm: &mut UnaryPermission<Self::AllowDesc, Self::DenyDesc>,
api_name: Option<&str>,
) -> Result<(), PermissionDeniedError>
fn check_in_permission( &self, perm: &mut UnaryPermission<Self::AllowDesc, Self::DenyDesc>, api_name: Option<&str>, ) -> Result<(), PermissionDeniedError>
Generic check function to check this descriptor against a
UnaryPermission
.fn matches_allow(&self, other: &Self::AllowDesc) -> bool
fn matches_deny(&self, other: &Self::DenyDesc) -> bool
Source§fn revokes(&self, other: &Self::AllowDesc) -> bool
fn revokes(&self, other: &Self::AllowDesc) -> bool
Gets if this query descriptor should revoke the provided allow descriptor.
fn stronger_than_deny(&self, other: &Self::DenyDesc) -> bool
fn overlaps_deny(&self, _other: &Self::DenyDesc) -> bool
impl DenyDescriptor for SysDescriptor
impl Eq for SysDescriptor
impl StructuralPartialEq for SysDescriptor
Auto Trait Implementations§
impl Freeze for SysDescriptor
impl RefUnwindSafe for SysDescriptor
impl Send for SysDescriptor
impl Sync for SysDescriptor
impl Unpin for SysDescriptor
impl UnwindSafe for SysDescriptor
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