pub struct DiskStorage { /* private fields */ }Implementations§
Source§impl DiskStorage
impl DiskStorage
pub fn new(size: usize) -> Result<Self>
pub fn new_at(path: impl AsRef<Path>, len: usize) -> Result<Self>
pub fn fd(&self) -> u64
pub fn path(&self) -> &Path
Sourcepub fn unlink(&mut self) -> Result<()>
pub fn unlink(&mut self) -> Result<()>
Unlink our temp file. This means that when this process terminates, the file will be automatically deleted by the OS. Unfortunately, GDS requires that files we try to register must be linked. To get around this, we unlink the file only after we’ve registered it with NIXL.
pub fn unlinked(&self) -> bool
Trait Implementations§
Source§impl Debug for DiskStorage
impl Debug for DiskStorage
Source§impl Drop for DiskStorage
impl Drop for DiskStorage
Source§impl MemoryDescription for DiskStorage
impl MemoryDescription for DiskStorage
Source§fn storage_kind(&self) -> StorageKind
fn storage_kind(&self) -> StorageKind
Type of storage backing this region.
Source§fn nixl_descriptor(&self) -> Option<NixlDescriptor>
fn nixl_descriptor(&self) -> Option<NixlDescriptor>
Get the NIXL descriptor for this memory region.
Source§impl NixlCompatible for DiskStorage
impl NixlCompatible for DiskStorage
Auto Trait Implementations§
impl Freeze for DiskStorage
impl RefUnwindSafe for DiskStorage
impl Send for DiskStorage
impl Sync for DiskStorage
impl Unpin for DiskStorage
impl UnwindSafe for DiskStorage
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