[][src]Struct jsonrpc_http_server::Rpc

pub struct Rpc<M: Metadata = (), S: Middleware<M> = Noop> {
    pub handler: Arc<MetaIoHandler<M, S>>,
    pub extractor: Arc<dyn MetaExtractor<M>>,
}

RPC Handler bundled with metadata extractor.

Fields

handler: Arc<MetaIoHandler<M, S>>

RPC Handler

extractor: Arc<dyn MetaExtractor<M>>

Metadata extractor

Trait Implementations

impl<M: Metadata, S: Middleware<M>> Clone for Rpc<M, S>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<M, S> Unpin for Rpc<M, S>

impl<M, S> Sync for Rpc<M, S>

impl<M, S> Send for Rpc<M, S>

impl<M = (), S = Noop> !UnwindSafe for Rpc<M, S>

impl<M = (), S = Noop> !RefUnwindSafe for Rpc<M, S>

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]