pub struct OpenAccessCheck { /* private fields */ }Expand description
Configuration for opening a file, bundling open flags with concrete permission checks.
Implementations§
Source§impl OpenAccessCheck
impl OpenAccessCheck
Sourcepub fn new(open_flags: OpenFlags, access_check: AccessCheck) -> Self
pub fn new(open_flags: OpenFlags, access_check: AccessCheck) -> Self
Creates an open check with explicit open flags and access check.
Sourcepub fn skip(open_flags: OpenFlags) -> Self
pub fn skip(open_flags: OpenFlags) -> Self
Skips permission checks when opening a file with the specified flags.
Sourcepub fn for_exec() -> Self
pub fn for_exec() -> Self
Configures read-only flags with an execute permission check for execve(2) / execveat(2).
Sourcepub fn open_flags(&self) -> OpenFlags
pub fn open_flags(&self) -> OpenFlags
Open flags for the file.
Sourcepub fn access_check(&self) -> AccessCheck
pub fn access_check(&self) -> AccessCheck
Permission checks to perform when opening the file.
Trait Implementations§
Source§impl Clone for OpenAccessCheck
impl Clone for OpenAccessCheck
Source§fn clone(&self) -> OpenAccessCheck
fn clone(&self) -> OpenAccessCheck
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 OpenAccessCheck
Source§impl Debug for OpenAccessCheck
impl Debug for OpenAccessCheck
impl Eq for OpenAccessCheck
Source§impl From<OpenFlags> for OpenAccessCheck
impl From<OpenFlags> for OpenAccessCheck
Source§impl PartialEq for OpenAccessCheck
impl PartialEq for OpenAccessCheck
impl StructuralPartialEq for OpenAccessCheck
Auto Trait Implementations§
impl Freeze for OpenAccessCheck
impl RefUnwindSafe for OpenAccessCheck
impl Send for OpenAccessCheck
impl Sync for OpenAccessCheck
impl Unpin for OpenAccessCheck
impl UnsafeUnpin for OpenAccessCheck
impl UnwindSafe for OpenAccessCheck
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