pub struct RdmaSnapshotArena;Expand description
Placeholder when RDMA verbs / CUDA aren’t built. connect always errors,
so crate dependents degrade to the host-RAM tier; write/read are
unreachable (a stub arena is never successfully constructed).
Implementations§
Source§impl RdmaSnapshotArena
impl RdmaSnapshotArena
pub fn connect( _addr: &str, _arena_bytes: u64, _blob_bytes: usize, ) -> Result<Self>
pub fn connect_paging( _addr: &str, _arena_bytes: u64, _blob_bytes: usize, ) -> Result<Self>
pub fn write(&self, _offset: u64, _bytes: &[u8]) -> Result<()>
pub fn read(&self, _offset: u64, _out: &mut [u8]) -> Result<()>
pub fn paging_put(&self, _key: u64, _bytes: &[u8]) -> Result<()>
pub fn paging_get(&self, _key: u64, _out: &mut [u8]) -> Result<bool>
pub fn paging_remove(&self, _key: u64) -> Result<()>
Auto Trait Implementations§
impl Freeze for RdmaSnapshotArena
impl RefUnwindSafe for RdmaSnapshotArena
impl Send for RdmaSnapshotArena
impl Sync for RdmaSnapshotArena
impl Unpin for RdmaSnapshotArena
impl UnwindSafe for RdmaSnapshotArena
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