[][src]Struct wascc_httpsrv::HttpServerProvider

pub struct HttpServerProvider { /* fields omitted */ }

An Actix-web implementation of the wascc:http_server capability specification

Implementations

impl HttpServerProvider[src]

pub fn new() -> Self[src]

Creates a new HTTP server provider. This is automatically invoked by dynamically loaded plugins, and manually invoked by custom hosts with a statically-linked dependency on this crate.

Trait Implementations

impl CapabilityProvider for HttpServerProvider[src]

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

Accepts the dispatcher provided by the waSCC 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 from the host runtime

impl Clone for HttpServerProvider[src]

impl Default for HttpServerProvider[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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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>,