[−][src]Trait wascc_actor::MessageBroker
Represents an abstraction around a client consuming a message broker provided by the host
Required methods
fn publish(
&self,
subject: &str,
reply_to: Option<&str>,
payload: &[u8]
) -> Result<()>
&self,
subject: &str,
reply_to: Option<&str>,
payload: &[u8]
) -> Result<()>
Publishes a new message on the given subject with an optional reply-to
fn request(
&self,
subject: &str,
payload: &[u8],
timeout_ms: u64
) -> Result<Vec<u8>>
&self,
subject: &str,
payload: &[u8],
timeout_ms: u64
) -> Result<Vec<u8>>
Publishes a message on the given subject and awaits a reply on an inbox subject