settings_storage::fidl_storage

Trait FidlStorageConvertible

Source
pub trait FidlStorageConvertible {
    type Storable;
    type Loader;

    const KEY: &'static str;

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

Required Associated Constants§

Source

const KEY: &'static str

Required Associated Types§

Required Methods§

Source

fn to_storable(self) -> Self::Storable

Source

fn from_storable(storable: Self::Storable) -> 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§