Struct selinux::access_vector_cache::Fixed
source · pub struct Fixed<D = DenyAll, const SIZE: usize = DEFAULT_FIXED_SIZE> { /* private fields */ }
Expand description
An access vector cache of fixed size and memory allocation. The underlying caching strategy is FIFO. Entries are evicted one at a time when entries are added to a full cache.
This implementation is thread-hostile; it expects all operations to be executed on the same thread.
Implementations§
Trait Implementations§
source§impl<D, const SIZE: usize> ProxyMut<D> for Fixed<D, SIZE>
impl<D, const SIZE: usize> ProxyMut<D> for Fixed<D, SIZE>
fn set_delegate(&mut self, delegate: D) -> D
source§impl<D: QueryMut, const SIZE: usize> QueryMut for Fixed<D, SIZE>
impl<D: QueryMut, const SIZE: usize> QueryMut for Fixed<D, SIZE>
source§fn query(
&mut self,
source_sid: SecurityId,
target_sid: SecurityId,
target_class: AbstractObjectClass
) -> AccessVector
fn query( &mut self, source_sid: SecurityId, target_sid: SecurityId, target_class: AbstractObjectClass ) -> AccessVector
Computes the [
AccessVector
] permitted to source_sid
for accessing target_sid
, an
object of type target_class
.Auto Trait Implementations§
impl<D, const SIZE: usize> Freeze for Fixed<D, SIZE>where
D: Freeze,
impl<D, const SIZE: usize> RefUnwindSafe for Fixed<D, SIZE>where
D: RefUnwindSafe,
impl<D, const SIZE: usize> Send for Fixed<D, SIZE>where
D: Send,
impl<D, const SIZE: usize> Sync for Fixed<D, SIZE>where
D: Sync,
impl<D, const SIZE: usize> Unpin for Fixed<D, SIZE>where
D: Unpin,
impl<D, const SIZE: usize> UnwindSafe for Fixed<D, SIZE>where
D: UnwindSafe,
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