trait Decode {
const MIME: (Name<'static>, Name<'static>);
const WITH_NO_CONTENT_TYPE: bool;
// Required method
fn decode<B: Buf, T: DeserializeOwned>(
buf: B,
) -> Result<T, Box<dyn StdError + Send + Sync>>;
}
Required Associated Constants§
Required Methods§
fn decode<B: Buf, T: DeserializeOwned>( buf: B, ) -> Result<T, Box<dyn StdError + Send + Sync>>
Object Safety§
This trait is not object safe.