Trait TryCreateMessage

Source
pub trait TryCreateMessage {
    // Required method
    fn try_create_message(&self) -> Result<Message, ProtocolError>;
}
Expand description

A trait for attempting to create a Message from self. This will be implemented by types that can act like message “factories”, like for instance the Signature type.

Required Methods§

Implementors§

Source§

impl<T> TryCreateMessage for Signature<T>
where T: Task + Clone,