[][src]Struct wascc_httpsrv::HttpServerProvider

pub struct HttpServerProvider { /* fields omitted */ }

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

Methods

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]

fn capability_id(&self) -> &'static str[src]

Returns the capability ID of the provider

fn configure_dispatch(
    &self,
    dispatcher: Box<dyn Dispatcher>
) -> Result<(), Box<dyn StdError>>
[src]

Accepts the dispatcher provided by the waSCC host runtime

fn name(&self) -> &'static str[src]

Returns the human-friendly name of the provider

fn handle_call(
    &self,
    origin: &str,
    op: &str,
    msg: &[u8]
) -> Result<Vec<u8>, Box<dyn StdError>>
[src]

Handles an invocation from the host runtime

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

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