[−][src]Struct wascc_httpsrv::HttpServerProvider
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]
&self,
dispatcher: Box<dyn Dispatcher>
) -> Result<(), Box<dyn StdError>>
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]
&self,
origin: &str,
op: &str,
msg: &[u8]
) -> Result<Vec<u8>, Box<dyn StdError>>
Handles an invocation from the host runtime
impl Default for HttpServerProvider
[src]
Auto Trait Implementations
impl RefUnwindSafe for HttpServerProvider
impl Send for HttpServerProvider
impl Sync for HttpServerProvider
impl Unpin for HttpServerProvider
impl UnwindSafe for HttpServerProvider
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,