pub struct PageBuffer { /* private fields */ }Expand description
A buffer backed by a memory-locked page with optional memory protection.
Implementations§
Source§impl PageBuffer
impl PageBuffer
Sourcepub fn new(strategy: ProtectionStrategy, len: usize) -> Result<Self, PageError>
pub fn new(strategy: ProtectionStrategy, len: usize) -> Result<Self, PageError>
Creates a new PageBuffer with the specified protection strategy and length.
Trait Implementations§
Source§impl Buffer for PageBuffer
impl Buffer for PageBuffer
Source§fn open(
&mut self,
f: &mut dyn FnMut(&[u8]) -> Result<(), BufferError>,
) -> Result<(), BufferError>
fn open( &mut self, f: &mut dyn FnMut(&[u8]) -> Result<(), BufferError>, ) -> Result<(), BufferError>
Opens the buffer for read-only access, executing the provided closure.
Source§impl Debug for PageBuffer
impl Debug for PageBuffer
impl Sync for PageBuffer
Auto Trait Implementations§
impl !Freeze for PageBuffer
impl RefUnwindSafe for PageBuffer
impl Send for PageBuffer
impl Unpin for PageBuffer
impl UnwindSafe for PageBuffer
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