pub struct PerThreadCache {}Expand description
A per-thread cache for permission checks. Currently empty.
Implementations§
Source§impl PerThreadCache
impl PerThreadCache
Sourcepub fn lookup_fd_use<F>(
&self,
_source_sid: SecurityId,
_target_sid: SecurityId,
compute: F,
) -> PermissionCheckResultwhere
F: FnOnce() -> PermissionCheckResult,
pub fn lookup_fd_use<F>(
&self,
_source_sid: SecurityId,
_target_sid: SecurityId,
compute: F,
) -> PermissionCheckResultwhere
F: FnOnce() -> PermissionCheckResult,
Looks up a fd use decision in cache, or falls back to using compute.
Trait Implementations§
Source§impl Debug for PerThreadCache
impl Debug for PerThreadCache
Source§impl Default for PerThreadCache
impl Default for PerThreadCache
Source§fn default() -> PerThreadCache
fn default() -> PerThreadCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerThreadCache
impl RefUnwindSafe for PerThreadCache
impl Send for PerThreadCache
impl Sync for PerThreadCache
impl Unpin for PerThreadCache
impl UnsafeUnpin for PerThreadCache
impl UnwindSafe for PerThreadCache
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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>
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