#[non_exhaustive]pub enum AclPermissionType {
Unknown,
Any,
Deny,
Allow,
}Expand description
Represents whether an ACL grants or denies permissions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Represents any AclPermissionType which this client cannot understand,
perhaps because this client is too old.
Any
In a filter, matches any AclPermissionType.
Deny
Disallows access.
Allow
Grants access.
Implementations§
Source§impl AclPermissionType
impl AclPermissionType
Sourcepub fn from_code(code: i8) -> AclPermissionType
pub fn from_code(code: i8) -> AclPermissionType
Returns the AclPermissionType with the provided code or
AclPermissionType::Unknown if one cannot be found.
§Arguments
code- the code to look up
Sourcepub fn from_string(str: &str) -> AclPermissionType
pub fn from_string(str: &str) -> AclPermissionType
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if this permission type is AclPermissionType::Unknown.
Trait Implementations§
Source§impl Clone for AclPermissionType
impl Clone for AclPermissionType
Source§fn clone(&self) -> AclPermissionType
fn clone(&self) -> AclPermissionType
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 AclPermissionType
impl Debug for AclPermissionType
Source§impl Display for AclPermissionType
impl Display for AclPermissionType
Source§impl Hash for AclPermissionType
impl Hash for AclPermissionType
Source§impl Ord for AclPermissionType
impl Ord for AclPermissionType
Source§fn cmp(&self, other: &AclPermissionType) -> Ordering
fn cmp(&self, other: &AclPermissionType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AclPermissionType
impl PartialEq for AclPermissionType
Source§impl PartialOrd for AclPermissionType
impl PartialOrd for AclPermissionType
impl Copy for AclPermissionType
impl Eq for AclPermissionType
impl StructuralPartialEq for AclPermissionType
Auto Trait Implementations§
impl Freeze for AclPermissionType
impl RefUnwindSafe for AclPermissionType
impl Send for AclPermissionType
impl Sync for AclPermissionType
impl Unpin for AclPermissionType
impl UnsafeUnpin for AclPermissionType
impl UnwindSafe for AclPermissionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more