Struct emerald_rs::storage::StorageController
[−]
[src]
pub struct StorageController { /* fields omitted */ }
Controller to switch storage according to specified chain
Methods
impl StorageController
[src]
pub fn new<P: AsRef<Path>>(
base_path: P
) -> Result<StorageController, KeystoreError>
[src]
base_path: P
) -> Result<StorageController, KeystoreError>
Create new StorageController
pub fn get_keystore(
&self,
chain: &str
) -> Result<&Box<KeyfileStorage>, KeystoreError>
[src]
&self,
chain: &str
) -> Result<&Box<KeyfileStorage>, KeystoreError>
Get KeyFile
storage for specified chain
pub fn get_contracts(
&self,
chain: &str
) -> Result<&Box<ContractStorage>, KeystoreError>
[src]
&self,
chain: &str
) -> Result<&Box<ContractStorage>, KeystoreError>
Get Contract
storage for specified chain