pub trait CustomReplacableResource: Resource + Sized {
    // Required methods
    fn get_type_name() -> &'static str;
    fn to_vec(&self) -> Result<Vec<u8>, Error>;
    fn from_slice(val: &[u8]) -> Result<Self, Error>;
}

Required Methods§

source

fn get_type_name() -> &'static str

source

fn to_vec(&self) -> Result<Vec<u8>, Error>

source

fn from_slice(val: &[u8]) -> Result<Self, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S> CustomReplacableResource for Events<S>
where S: ReplacableEvent,

source§

fn get_type_name() -> &'static str

source§

fn to_vec(&self) -> Result<Vec<u8>, Error>

source§

fn from_slice(_: &[u8]) -> Result<Events<S>, Error>

source§

impl<S> CustomReplacableResource for NextState<S>
where S: ReplacableState,

source§

fn get_type_name() -> &'static str

source§

fn to_vec(&self) -> Result<Vec<u8>, Error>

source§

fn from_slice(val: &[u8]) -> Result<NextState<S>, Error>

source§

impl<S> CustomReplacableResource for State<S>
where S: ReplacableState,

source§

fn get_type_name() -> &'static str

source§

fn to_vec(&self) -> Result<Vec<u8>, Error>

source§

fn from_slice(val: &[u8]) -> Result<State<S>, Error>

Implementors§