[][src]Function jsonrpc::arg

pub fn arg<T: Serialize>(arg: T) -> Box<RawValue>

Shorthand method to convert an argument into a Box<serde_json::value::RawValue>.

This conversion should not fail, so to avoid returning a Result, in case of an error, the error is serialized as the return value.