[][src]Struct wascc_nats::NatsProvider

pub struct NatsProvider { /* fields omitted */ }

NATS implementation of the wascc:messaging specification

Implementations

impl NatsProvider[src]

pub fn new() -> NatsProvider[src]

Creates a new NATS provider. This is either invoked manually in static plugin mode, or invoked by the host during dynamic loading

Trait Implementations

impl CapabilityProvider for NatsProvider[src]

pub fn configure_dispatch(
    &self,
    dispatcher: Box<dyn Dispatcher>
) -> Result<(), Box<dyn Error + Sync + Send>>
[src]

Receives a dispatcher from the host runtime

pub fn handle_call(
    &self,
    actor: &str,
    op: &str,
    msg: &[u8]
) -> Result<Vec<u8>, Box<dyn Error + Sync + Send>>
[src]

Handles an invocation received from the host runtime

impl Clone for NatsProvider[src]

impl Default for NatsProvider[src]

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> CloneProvider for T where
    T: CapabilityProvider + Clone + 'static, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,