pub trait RdmaLocalMemory:
Send
+ Sync
+ Debug {
// Required methods
fn addr(&self) -> usize;
fn size(&self) -> usize;
fn read_at(&self, offset: usize, dst: &mut [u8]) -> Result<(), Error>;
fn write_at(&self, offset: usize, src: &[u8]) -> Result<(), Error>;
}Expand description
Handle to a contiguous region of local memory.
Implementations must guarantee the underlying allocation is valid for the lifetime of the implementor.