ConfigFormat

Trait ConfigFormat 

Source
pub trait ConfigFormat {
    // Required methods
    fn extension(&self) -> &OsStr;
    fn de<T: DeserializeOwned>(&self, slice: &[u8]) -> Result<T, BoxError>;
    fn ser<T: Serialize>(&self, t: &T) -> Result<Vec<u8>, BoxError>;
}

Required Methods§

Source

fn extension(&self) -> &OsStr

Source

fn de<T: DeserializeOwned>(&self, slice: &[u8]) -> Result<T, BoxError>

Source

fn ser<T: Serialize>(&self, t: &T) -> Result<Vec<u8>, BoxError>

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§