pub trait KeyFileManager: Send + Sync {
    // Required methods
    fn read<T>(
        &self,
        filename: Option<String>,
        reader: T
    ) -> Result<SafeAccount, Error>
       where T: Read;
    fn write<T>(
        &self,
        account: SafeAccount,
        writer: &mut T
    ) -> Result<(), Error>
       where T: Write;
}
Expand description

Disk directory key file manager

Required Methods§

source

fn read<T>( &self, filename: Option<String>, reader: T ) -> Result<SafeAccount, Error>
where T: Read,

Read SafeAccount from given key file stream

source

fn write<T>(&self, account: SafeAccount, writer: &mut T) -> Result<(), Error>
where T: Write,

Write SafeAccount to given key file stream

Object Safety§

This trait is not object safe.

Implementors§