Unverified Commit 2d6cc432 authored by milesial's avatar milesial Committed by GitHub
Browse files

feat: make NIXL descriptor serializable (#4222)


Signed-off-by: default avatarmilesial <milesial@users.noreply.github.com>
parent efec27f9
......@@ -14,6 +14,7 @@ pub use agent::NixlAgent;
pub use config::NixlBackendConfig;
pub use nixl_sys::{MemType, OptArgs, RegistrationHandle};
pub use serde::{Deserialize, Serialize};
/// Trait for storage types that can be registered with NIXL.
pub trait NixlCompatible {
......@@ -24,7 +25,7 @@ pub trait NixlCompatible {
}
/// NIXL descriptor containing registration information.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NixlDescriptor {
pub addr: u64,
pub size: usize,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment