aldrin-core 0.13.0

Shared core components of Aldrin, a message bus for service-oriented RPC and interprocess communication.
Documentation
1
2
3
4
5
6
use crate::tags::{KeyTag, KeyTagImpl};
use crate::DeserializeError;

pub trait DeserializeKey<T: KeyTag>: Sized {
    fn try_from_key(key: <T::Impl as KeyTagImpl>::Key<'_>) -> Result<Self, DeserializeError>;
}