[−][src]Struct wascc_actor::messaging::MessageBrokerHostBinding
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]
&self,
subject: &str,
reply_to: Option<&str>,
payload: &[u8]
) -> HandlerResult<()>
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]
&self,
subject: &str,
payload: &[u8],
timeout_ms: u64
) -> HandlerResult<Vec<u8>>
Publishes a message and expects a reply to come back within a given timeout (in milliseconds)
Auto Trait Implementations
impl RefUnwindSafe for MessageBrokerHostBinding
impl Send for MessageBrokerHostBinding
impl Sync for MessageBrokerHostBinding
impl Unpin for MessageBrokerHostBinding
impl UnwindSafe for MessageBrokerHostBinding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,