Skip to main content

Decoder

Trait Decoder 

Source
pub trait Decoder:
    Send
    + Sync
    + 'static {
    // Required method
    fn decode(&self, bytes: Vec<u8>) -> Result<Resource, FetchError>;
}

Required Methods§

Source

fn decode(&self, bytes: Vec<u8>) -> Result<Resource, FetchError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§