pub struct AccessCheck { /* private fields */ }Expand description
Configuration for access permission checks performed on filesystem nodes.
Implementations§
Source§impl AccessCheck
impl AccessCheck
Sourcepub fn for_internal(permissions: impl Into<PermissionFlags>) -> Self
pub fn for_internal(permissions: impl Into<PermissionFlags>) -> Self
Internal VFS permission check for the specified access rights.
Sourcepub fn for_chdir() -> Self
pub fn for_chdir() -> Self
Check for execute (search) permission when changing working directory.
Sourcepub fn for_chroot() -> Self
pub fn for_chroot() -> Self
Check for execute (search) permission when changing root directory.
Sourcepub fn for_access(permissions: impl Into<PermissionFlags>) -> Self
pub fn for_access(permissions: impl Into<PermissionFlags>) -> Self
Check for specified access rights for access(2) / faccessat(2).
Sourcepub fn permission_flags(&self) -> PermissionFlags
pub fn permission_flags(&self) -> PermissionFlags
Permission flags to check.
Sourcepub fn reason(&self) -> CheckAccessReason
pub fn reason(&self) -> CheckAccessReason
Reason for the access check.
Trait Implementations§
Source§impl Clone for AccessCheck
impl Clone for AccessCheck
Source§fn clone(&self) -> AccessCheck
fn clone(&self) -> AccessCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccessCheck
Source§impl Debug for AccessCheck
impl Debug for AccessCheck
impl Eq for AccessCheck
Source§impl PartialEq for AccessCheck
impl PartialEq for AccessCheck
impl StructuralPartialEq for AccessCheck
Auto Trait Implementations§
impl Freeze for AccessCheck
impl RefUnwindSafe for AccessCheck
impl Send for AccessCheck
impl Sync for AccessCheck
impl Unpin for AccessCheck
impl UnsafeUnpin for AccessCheck
impl UnwindSafe for AccessCheck
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [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