Trait hedwig::EncodableMessage [−][src]
pub trait EncodableMessage {
type Error;
type Validator;
fn topic(&self) -> Topic;
fn encode(
&self,
validator: &Self::Validator
) -> Result<ValidatedMessage, Self::Error>;
}
Expand description
Types that can be encoded and published.
Associated Types
The errors that can occur when calling the EncodableMessage::encode
method.
Will typically match the errors returned by the EncodableMessage::Validator
.