pub trait SerdeMessage<A, B, E: ApiError>: Sized {
    fn into_message(self) -> Result<Message<A, B>, E>
    where
        B: PacketBytes
; fn from_message(msg: Message<A, B>) -> Result<Self, E>
    where
        B: PacketBytes
; }
Expand description

Means SerializeDeserialize Message

Required Methods§

You should never return a Message which has a status of !success

Note

The action and the success flag/states will automatically be set

you will never receive a Message with a status of !success

Note

The action will always match

Implementations on Foreign Types§

Implementors§