Struct jsonrpc_core::io::IoDelegate [] [src]

pub struct IoDelegate<T> where T: Send + Sync + 'static {
    // some fields omitted
}

Methods

impl<T> IoDelegate<T> where T: Send + Sync + 'static
[src]

fn new(delegate: Arc<T>) -> Self

fn add_method<F>(&mut self, name: &str, closure: F) where F: Fn(&T, Params) -> Result<ValueError> + Send + Sync + 'static

fn add_notification<F>(&mut self, name: &str, closure: F) where F: Fn(&T, Params) + Send + Sync + 'static