pub struct PerCpuArray<T> { /* private fields */ }Implementations§
Source§impl<T> PerCpuArray<T>
impl<T> PerCpuArray<T>
pub const fn with_max_entries(max_entries: u32, flags: u32) -> PerCpuArray<T>
pub const fn pinned(max_entries: u32, flags: u32) -> PerCpuArray<T>
pub fn get(&self, index: u32) -> Option<&T>
pub fn get_ptr(&self, index: u32) -> Option<*const T>
pub fn get_ptr_mut(&self, index: u32) -> Option<*mut T>
Trait Implementations§
impl<T> Sync for PerCpuArray<T>
Auto Trait Implementations§
impl<T> !Freeze for PerCpuArray<T>
impl<T> !RefUnwindSafe for PerCpuArray<T>
impl<T> Send for PerCpuArray<T>where
T: Send,
impl<T> Unpin for PerCpuArray<T>where
T: Unpin,
impl<T> UnwindSafe for PerCpuArray<T>where
T: 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