#[non_exhaustive]pub enum AclOperation {
Show 16 variants
Unknown,
Any,
All,
Read,
Write,
Create,
Delete,
Alter,
Describe,
ClusterAction,
DescribeConfigs,
AlterConfigs,
IdempotentWrite,
CreateTokens,
DescribeTokens,
TwoPhaseCommit,
}Expand description
Represents an operation which an ACL grants or denies permission to perform.
Some operations imply other operations:
ALLOW ALLimpliesALLOWeverythingDENY ALLimpliesDENYeverythingALLOW READimpliesALLOW DESCRIBEALLOW WRITEimpliesALLOW DESCRIBEALLOW DELETEimpliesALLOW DESCRIBEALLOW ALTERimpliesALLOW DESCRIBEALLOW ALTER_CONFIGSimpliesALLOW DESCRIBE_CONFIGS
Corresponds to org.apache.kafka.common.acl.AclOperation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
Represents any AclOperation which this client cannot understand,
perhaps because this client is too old.
Any
In a filter, matches any AclOperation.
All
ALL operation.
Read
READ operation.
Write
WRITE operation.
Create
CREATE operation.
Delete
DELETE operation.
Alter
ALTER operation.
Describe
DESCRIBE operation.
ClusterAction
CLUSTER_ACTION operation.
DescribeConfigs
DESCRIBE_CONFIGS operation.
AlterConfigs
ALTER_CONFIGS operation.
IdempotentWrite
IDEMPOTENT_WRITE operation.
CreateTokens
CREATE_TOKENS operation.
DescribeTokens
DESCRIBE_TOKENS operation.
TwoPhaseCommit
TWO_PHASE_COMMIT operation.
Implementations§
Source§impl AclOperation
impl AclOperation
Sourcepub fn from_code(code: i8) -> AclOperation
pub fn from_code(code: i8) -> AclOperation
Return the AclOperation with the provided code or AclOperation::Unknown
if one cannot be found.
Sourcepub fn from_string(str: &str) -> AclOperation
pub fn from_string(str: &str) -> AclOperation
Parse the given string as an ACL operation.
Returns the AclOperation, or AclOperation::Unknown if the string
could not be matched (case-insensitive).
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Return true if this operation is AclOperation::Unknown.
Trait Implementations§
Source§impl Clone for AclOperation
impl Clone for AclOperation
Source§fn clone(&self) -> AclOperation
fn clone(&self) -> AclOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AclOperation
impl Debug for AclOperation
Source§impl Display for AclOperation
impl Display for AclOperation
Source§impl Hash for AclOperation
impl Hash for AclOperation
Source§impl Ord for AclOperation
impl Ord for AclOperation
Source§fn cmp(&self, other: &AclOperation) -> Ordering
fn cmp(&self, other: &AclOperation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AclOperation
impl PartialEq for AclOperation
Source§impl PartialOrd for AclOperation
impl PartialOrd for AclOperation
impl Copy for AclOperation
impl Eq for AclOperation
impl StructuralPartialEq for AclOperation
Auto Trait Implementations§
impl Freeze for AclOperation
impl RefUnwindSafe for AclOperation
impl Send for AclOperation
impl Sync for AclOperation
impl Unpin for AclOperation
impl UnsafeUnpin for AclOperation
impl UnwindSafe for AclOperation
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
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
§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
key and return true if they are equal.