mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
* feat: rebuild idm to separate transport from content * feat: fast guest lookup table and host identification
11 lines
255 B
Rust
11 lines
255 B
Rust
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;
|
|
}
|