pub type Decoder<I> = fn(Content) -> Result<I, Error>;Expand description
Decodes one data frame’s content into a method’s item I — straight
from the wire’s text where the transport kept it (PERF.115-36’s
Content), never through a Value first.
A plain-T method’s is Content::decode::<T>; a Result method’s is
wire_result::from_content::<T, E>,
which reads {"ok"} / {"err"}. A function pointer, so it is Send,
Sync and Copy whatever I is.