[][src]Trait remote_trait_object::Dispatch

pub trait Dispatch: Send + Sync {
    fn dispatch_and_call(&self, method: MethodId, args: &[u8]) -> Vec<u8>;
}

Exporter sides's interface to the service object. This will be implemented by each service trait's unique wrapper in the macro

Required methods

fn dispatch_and_call(&self, method: MethodId, args: &[u8]) -> Vec<u8>

Loading content...

Implementors

impl<F> Dispatch for F where
    F: Fn(MethodId, &[u8]) -> Vec<u8> + Send + Sync
[src]

Loading content...