pub trait ConvertMessage: Sized + for<'a> Deserialize<'a> + Serialize {
    // Provided methods
    fn from_message(value: Message) -> Result<Self, LockKeeperError> { ... }
    fn to_message(self) -> Result<Message, LockKeeperError> { ... }
}
Expand description

Converts a serializable Rust type to and from the RPC Message type.

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: for<'a> Deserialize<'a> + Serialize> ConvertMessage for T