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

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

A value that can be loaded from a file.

Associated Types

type Error: Debug + Display

Error that can occur when attempting to load.

Loading content...

Required methods

fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, Self::Error>

Loads a value from the given input path.

Loading content...

Implementations on Foreign Types

impl Loadable for Vec<GenesisAccount>[src]

type Error = GenesisLoadError

impl Loadable for X509[src]

type Error = Error

impl Loadable for PKey<Private>[src]

type Error = Error

impl Loadable for Vec<u8>[src]

type Error = ReadFileError

Loading content...

Implementors

impl Loadable for SecretKey[src]

type Error = Error

impl Loadable for Chainspec[src]

type Error = Error

Loading content...