Storage

Trait Storage 

Source
pub trait Storage {
    // Required methods
    fn bytes_size(&self) -> usize;
    fn to_bytes(&self, buf: &mut [u8]);
    fn from_bytes(settings: &Settings, buf: &[u8]) -> Self;
    fn clear(&mut self);
}

Required Methods§

Source

fn bytes_size(&self) -> usize

Source

fn to_bytes(&self, buf: &mut [u8])

Source

fn from_bytes(settings: &Settings, buf: &[u8]) -> Self

Source

fn clear(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§