FlashBlockDecoder

Trait FlashBlockDecoder 

Source
pub trait FlashBlockDecoder: Send + 'static {
    // Required method
    fn decode(&self, bytes: Bytes) -> Result<FlashBlock>;
}
Expand description

A trait for decoding flashblocks from bytes.

Required Methods§

Source

fn decode(&self, bytes: Bytes) -> Result<FlashBlock>

Decodes bytes into a FlashBlock.

Implementations on Foreign Types§

Source§

impl FlashBlockDecoder for ()

Default implementation of the decoder.

Source§

fn decode(&self, bytes: Bytes) -> Result<FlashBlock>

Implementors§