krata 0.0.21

Client library and common services for the krata isolation engine
Documentation
1
2
3
4
5
6
7
8
9
10
use anyhow::Result;

pub trait IdmSerializable: Sized + Clone + Send + Sync + 'static {
    fn decode(bytes: &[u8]) -> Result<Self>;
    fn encode(&self) -> Result<Vec<u8>>;
}

pub trait IdmRequest: IdmSerializable {
    type Response: IdmSerializable;
}