Struct rocketmq_common::common::constant::PermName
source · pub struct PermName;Implementations§
source§impl PermName
impl PermName
pub const INDEX_PERM_PRIORITY: u32 = 3u32
pub const INDEX_PERM_READ: u32 = 2u32
pub const INDEX_PERM_WRITE: u32 = 1u32
pub const INDEX_PERM_INHERIT: u32 = 0u32
pub const PERM_PRIORITY: u32 = 8u32
pub const PERM_READ: u32 = 4u32
pub const PERM_WRITE: u32 = 2u32
pub const PERM_INHERIT: u32 = 1u32
pub fn perm2string(perm: u32) -> String
pub fn is_readable(perm: u32) -> bool
pub fn is_writeable(perm: u32) -> bool
pub fn is_inherited(perm: u32) -> bool
pub fn is_valid(perm: u32) -> bool
pub fn is_priority(perm: u32) -> bool
Auto Trait Implementations§
impl Freeze for PermName
impl RefUnwindSafe for PermName
impl Send for PermName
impl Sync for PermName
impl Unpin for PermName
impl UnwindSafe for PermName
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