pub trait Extract: Sized {
type Error: ExtractError;
// Required method
fn extract(payload: Vec<u8>) -> Result<Self, Self::Error>;
}Expand description
Payload extractor for encodings
Required Associated Types§
Sourcetype Error: ExtractError
type Error: ExtractError
The error type returned when extraction fails.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.