Struct jsonrpc_http_server::Rpc[][src]

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

Implementations

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

pub fn downgrade(&self) -> WeakRpc<M, S>[src]

Downgrade the Rpc to WeakRpc.

Downgrades internal Arcs to Weak references.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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

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