Trait casper_node::utils::Loadable[][src]

pub trait Loadable: Sized {
    type Error: Debug + Display;
    fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>;
}
Expand description

A value that can be loaded from a file.

Associated Types

type Error: Debug + Display[src]

Error that can occur when attempting to load.

Required methods

fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>[src]

Loads a value from the given input path.

Implementations on Foreign Types

impl Loadable for Option<GlobalStateUpdateConfig>[src]

type Error = GlobalStateUpdateLoadError

fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>[src]

impl Loadable for X509[src]

type Error = Error

fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>[src]

impl Loadable for PKey<Private>[src]

type Error = Error

fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>[src]

impl Loadable for SecretKey[src]

type Error = Error

fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>[src]

impl Loadable for Vec<u8>[src]

type Error = ReadFileError

fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>[src]

Implementors

impl Loadable for Chainspec[src]

type Error = Error

fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>[src]