pub trait Loadable: Sized {
    fn load(buffer: &[u8]) -> (Option<Self>, usize);

    fn load_base64(buffer: &[u8]) -> (Option<Self>, usize) { ... }
}
Expand description

Load an object from the buffer

Required Methods

Read the buffer, building the object and returning the amount of bytes read. If anything is wrong with the buffer, None should be returned.

Provided Methods

Implementations on Foreign Types

Implementors