pub trait FidlStorageConvertible {
    type Storable: Persistable + Any;
    type Loader: DefaultDispatcher<Self>
       where Self: Sized;

    const KEY: &'static str;

    // Required methods
    fn to_storable(self) -> Self::Storable;
    fn from_storable(storable: Self::Storable) -> Self;
}

Required Associated Types§

Required Associated Constants§

source

const KEY: &'static str

Required Methods§

source

fn to_storable(self) -> Self::Storable

source

fn from_storable(storable: Self::Storable) -> Self

Object Safety§

This trait is not object safe.

Implementors§