pub struct AccessString(/* private fields */);
Implementations§
Source§impl AccessString
impl AccessString
pub const fn new(bits: u32) -> Self
pub const fn value(&self) -> u32
pub fn make(list: &[AccessPair]) -> Self
pub fn is_accessable( &self, group: AccessGroup, permission: AccessPermission, ) -> bool
pub fn set_group_permission( &mut self, group: AccessGroup, permission: AccessPermission, )
pub fn clear_group_permission( &mut self, group: AccessGroup, permission: AccessPermission, )
pub fn get_group_permissions(&self, group: AccessGroup) -> AccessPermissions
pub fn set_group_permissions( &mut self, group: AccessGroup, permissions: AccessPermissions, )
pub fn clear_group_permissions(&mut self, group: AccessGroup)
pub fn full_except_write() -> Self
pub fn full() -> Self
pub fn dec_default() -> Self
Trait Implementations§
Source§impl Clone for AccessString
impl Clone for AccessString
Source§fn clone(&self) -> AccessString
fn clone(&self) -> AccessString
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AccessString
impl Debug for AccessString
Source§impl Default for AccessString
impl Default for AccessString
Source§impl<'de> Deserialize<'de> for AccessString
impl<'de> Deserialize<'de> for AccessString
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AccessString
impl Display for AccessString
Source§impl FromStr for AccessString
impl FromStr for AccessString
Source§type Err = BuckyError
type Err = BuckyError
The associated error which can be returned from parsing.
Source§impl PartialEq for AccessString
impl PartialEq for AccessString
Source§impl Serialize for AccessString
impl Serialize for AccessString
Source§impl TryFrom<&str> for AccessString
impl TryFrom<&str> for AccessString
Source§type Error = BuckyError
type Error = BuckyError
The type returned in the event of a conversion error.
Source§fn try_from(value: &str) -> BuckyResult<Self>
fn try_from(value: &str) -> BuckyResult<Self>
Performs the conversion.
impl Eq for AccessString
impl StructuralPartialEq for AccessString
Auto Trait Implementations§
impl Freeze for AccessString
impl RefUnwindSafe for AccessString
impl Send for AccessString
impl Sync for AccessString
impl Unpin for AccessString
impl UnwindSafe for AccessString
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more