[][src]Struct wascc_actor::messaging::MessageBrokerHostBinding

pub struct MessageBrokerHostBinding { /* fields omitted */ }

Exposes message broker functionality to actor modules

Implementations

impl MessageBrokerHostBinding[src]

pub fn publish(
    &self,
    subject: &str,
    reply_to: Option<&str>,
    payload: &[u8]
) -> HandlerResult<()>
[src]

Publishes a message on a given subject with an optional reply subject

pub fn request(
    &self,
    subject: &str,
    payload: &[u8],
    timeout_ms: u64
) -> HandlerResult<Vec<u8>>
[src]

Publishes a message and expects a reply to come back within a given timeout (in milliseconds)

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.