[][src]Trait starling::traits::Decode

pub trait Decode {
    fn decode(buffer: &[u8]) -> Result<Self, Exception>
    where
        Self: Sized
; }

This trait must be implemented to allow an arbitrary sized buffer to be deserialized.

Errors

Exception generated when the buffer fails to be decoded to the target type.

Required methods

fn decode(buffer: &[u8]) -> Result<Self, Exception> where
    Self: Sized

Decodes bytes into a Sized struct.

Errors

Exception generated when the buffer fails to be decoded to the target type.

Loading content...

Implementations on Foreign Types

impl Decode for Vec<u8>[src]

Loading content...

Implementors

Loading content...