Trait sc_rpc_api::RpcExtension[][src]

pub trait RpcExtension<M = ()> where
    M: Metadata
{ pub fn augment<S>(self, handler: &mut MetaIoHandler<M, S>)
    where
        S: Middleware<M>
; }

A type that can augment MetaIoHandler.

This allows your code to accept generic extensions for IoHandler and compose them to create the RPC server.

Required methods

pub fn augment<S>(self, handler: &mut MetaIoHandler<M, S>) where
    S: Middleware<M>, 
[src]

Extend given handler with additional methods.

Loading content...

Implementations on Foreign Types

impl<M, A, B, C, D, E, F, G, H> IoHandlerExtension<M> for (A, B, C, D, E, F, G, H) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata,
    F: IoHandlerExtension<M>,
    H: IoHandlerExtension<M>,
    G: IoHandlerExtension<M>, 
[src]

impl<M, S2> IoHandlerExtension<M> for MetaIoHandler<M, S2> where
    M: Metadata,
    S2: Middleware<M>, 
[src]

impl<M, A, B> IoHandlerExtension<M> for (A, B) where
    B: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata
[src]

impl<M, A, B, C, D, E, F, G> IoHandlerExtension<M> for (A, B, C, D, E, F, G) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata,
    F: IoHandlerExtension<M>,
    G: IoHandlerExtension<M>, 
[src]

impl<M, A, B, C, D, E, F> IoHandlerExtension<M> for (A, B, C, D, E, F) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata,
    F: IoHandlerExtension<M>, 
[src]

impl<M, A> IoHandlerExtension<M> for (A,) where
    A: IoHandlerExtension<M>,
    M: Metadata
[src]

impl<M, A, B, C, D, E, F, G, H, I, J, K, L> IoHandlerExtension<M> for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata,
    K: IoHandlerExtension<M>,
    F: IoHandlerExtension<M>,
    H: IoHandlerExtension<M>,
    L: IoHandlerExtension<M>,
    I: IoHandlerExtension<M>,
    G: IoHandlerExtension<M>,
    J: IoHandlerExtension<M>, 
[src]

impl<M> IoHandlerExtension<M> for IoHandler<M> where
    M: Metadata
[src]

impl<T, M> IoHandlerExtension<M> for IoDelegate<T, M> where
    T: Send + Sync + 'static,
    M: Metadata
[src]

impl<M> IoHandlerExtension<M> for HashMap<String, RemoteProcedure<M>, RandomState> where
    M: Metadata
[src]

impl<M, A, B, C> IoHandlerExtension<M> for (A, B, C) where
    C: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata
[src]

impl<M, A, B, C, D, E> IoHandlerExtension<M> for (A, B, C, D, E) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata
[src]

impl<M> IoHandlerExtension<M> for () where
    M: Metadata
[src]

impl<M, T> IoHandlerExtension<M> for Option<T> where
    T: IoHandlerExtension<M>,
    M: Metadata
[src]

impl<M, A, B, C, D, E, F, G, H, I> IoHandlerExtension<M> for (A, B, C, D, E, F, G, H, I) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata,
    F: IoHandlerExtension<M>,
    H: IoHandlerExtension<M>,
    I: IoHandlerExtension<M>,
    G: IoHandlerExtension<M>, 
[src]

impl<M> IoHandlerExtension<M> for Vec<(String, RemoteProcedure<M>), Global> where
    M: Metadata
[src]

impl<M, A, B, C, D, E, F, G, H, I, J> IoHandlerExtension<M> for (A, B, C, D, E, F, G, H, I, J) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata,
    F: IoHandlerExtension<M>,
    H: IoHandlerExtension<M>,
    I: IoHandlerExtension<M>,
    G: IoHandlerExtension<M>,
    J: IoHandlerExtension<M>, 
[src]

impl<M, A, B, C, D> IoHandlerExtension<M> for (A, B, C, D) where
    C: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata
[src]

impl<M, A, B, C, D, E, F, G, H, I, J, K> IoHandlerExtension<M> for (A, B, C, D, E, F, G, H, I, J, K) where
    C: IoHandlerExtension<M>,
    E: IoHandlerExtension<M>,
    B: IoHandlerExtension<M>,
    D: IoHandlerExtension<M>,
    A: IoHandlerExtension<M>,
    M: Metadata,
    K: IoHandlerExtension<M>,
    F: IoHandlerExtension<M>,
    H: IoHandlerExtension<M>,
    I: IoHandlerExtension<M>,
    G: IoHandlerExtension<M>,
    J: IoHandlerExtension<M>, 
[src]

impl<T, M> IoHandlerExtension<M> for IoDelegate<T, M> where
    T: Send + Sync + 'static,
    M: Metadata
[src]

Loading content...

Implementors

Loading content...