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§
Sourcefn decode(&self, bytes: Bytes) -> Result<FlashBlock>
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.
impl FlashBlockDecoder for ()
Default implementation of the decoder.