Struct zookeeper_client::Permission
source · pub struct Permission(_);
Expand description
Permission expresses rights accessors should have to operate on attached node.
Implementations§
source§impl Permission
impl Permission
sourcepub const READ: Permission = _
pub const READ: Permission = _
Permission to get data from a node and list its children.
sourcepub const WRITE: Permission = _
pub const WRITE: Permission = _
Permission to set data for a node.
sourcepub const CREATE: Permission = _
pub const CREATE: Permission = _
Permission to create a child node.
sourcepub const DELETE: Permission = _
pub const DELETE: Permission = _
Permission to delete a child node.
sourcepub const ADMIN: Permission = _
pub const ADMIN: Permission = _
Permission to set ACL permissions.
sourcepub const ALL: Permission = _
pub const ALL: Permission = _
Permission to do all above.
sourcepub const NONE: Permission = _
pub const NONE: Permission = _
Permission to do none of above.
sourcepub fn has(self, perm: Permission) -> bool
pub fn has(self, perm: Permission) -> bool
Test whether this permission has given permission. Same as self & perm == perm
.
Trait Implementations§
source§impl BitAnd<Permission> for Permission
impl BitAnd<Permission> for Permission
source§impl BitOr<Permission> for Permission
impl BitOr<Permission> for Permission
source§impl Clone for Permission
impl Clone for Permission
source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
Returns a copy 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 Permission
impl Debug for Permission
source§impl Display for Permission
impl Display for Permission
source§impl Hash for Permission
impl Hash for Permission
source§impl PartialEq<Permission> for Permission
impl PartialEq<Permission> for Permission
source§fn eq(&self, other: &Permission) -> bool
fn eq(&self, other: &Permission) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for Permission
impl TryFrom<i32> for Permission
impl Copy for Permission
impl Eq for Permission
impl StructuralEq for Permission
impl StructuralPartialEq for Permission
Auto Trait Implementations§
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more