Trait fire_stream_api::message::SerdeMessage
source · 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§
sourcefn into_message(self) -> Result<Message<A, B>, E>where
B: PacketBytes,
fn into_message(self) -> Result<Message<A, B>, E>where
B: PacketBytes,
You should never return a Message which has a status of !success
Note
The action and the success flag/states will automatically be set