Struct secgate::util::SimpleBuffer
source · pub struct SimpleBuffer { /* private fields */ }
Expand description
A simple buffer to use for transferring bytes between compartments, using shared memory via objects underneath.
Implementations§
source§impl SimpleBuffer
impl SimpleBuffer
sourcepub fn new(handle: ObjectHandle) -> Self
pub fn new(handle: ObjectHandle) -> Self
Build a new SimpleBuffer from an object handle.
sourcepub fn handle(&self) -> &ObjectHandle
pub fn handle(&self) -> &ObjectHandle
Get the underlying object handle.
Trait Implementations§
Auto Trait Implementations§
impl !Crossing for SimpleBuffer
impl !ObjSafe for SimpleBuffer
impl RefUnwindSafe for SimpleBuffer
impl Send for SimpleBuffer
impl Sync for SimpleBuffer
impl Unpin for SimpleBuffer
impl UnwindSafe for SimpleBuffer
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