Struct zookeeper_client::Permission
source · [−]pub struct Permission(_);Expand description
Permission expresses rights accessors should have to operate on attached node.
Implementations
sourceimpl Permission
impl Permission
pub const NONE: Permission = Permission(0)
pub const READ: Permission = Permission(1)
pub const WRITE: Permission = Permission(2)
pub const CREATE: Permission = Permission(4)
pub const DELETE: Permission = Permission(8)
pub const ADMIN: Permission = Permission(16)
pub const ALL: Permission = Permission(31)
pub fn has(self, perm: Permission) -> bool
Trait Implementations
sourceimpl BitOr<Permission> for Permission
impl BitOr<Permission> for Permission
sourceimpl Clone for Permission
impl Clone for Permission
sourcefn clone(&self) -> Permission
fn clone(&self) -> Permission
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Permission
impl Debug for Permission
sourceimpl Display for Permission
impl Display for Permission
sourceimpl Hash for Permission
impl Hash for Permission
sourceimpl PartialEq<Permission> for Permission
impl PartialEq<Permission> for Permission
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &Permission) -> bool
fn ne(&self, other: &Permission) -> bool
This method tests for !=.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToCompactString for T where
T: Display,
impl<T> ToCompactString for T where
T: Display,
sourcefn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a CompactString. Read more