pub fn new<F>(cb: F) -> Self
        where F: FnMut(&mut Message) -> MethodResult + 'static
    {
        Method {
            in_args: vec![],
            out_args: vec![],
            cb: Box::new(RefCell::new(cb)),
            anns: vec![],
        }
    }
/// Create a new `Method` with the given function.
Create a new `Method` with the given function.
Create a new ` Method ` with the given function .
pub fn new<F>(cb: F) -> Self
        where F: FnMut(&mut Message) -> MethodResult + 'static
    {
        Method {
            in_args: vec![],
            out_args: vec![],
            cb: Box::new(RefCell::new(cb)),
            anns: vec![],
        }
    }
pub fn new < F > ( cb : F ) -> Self where F : FnMut ( & mut Message ) -> MethodResult + ' static { Method { in_args : vec ! [ ] , out_args : vec ! [ ] , cb : Box :: new ( RefCell :: new ( cb ) ) , anns : vec ! [ ] , } }
Create a new `Method` with the given function.
Create a new ` Method ` with the given function .
cb
F