[−][src]Function jsonrpc::try_arg
pub fn try_arg<T: Serialize>(arg: T) -> Result<Box<RawValue>, Error>
Shorthand method to convert an argument into a [Box<serde_json::value::RawValue>]. Since serializers rarely fail, it's probably easier to use [arg] instead.