pub struct WalletUserDbConfig { /* private fields */ }Expand description
Database directory configuration for a specific user and wallet environment.
Implementations§
Source§impl WalletUserDbConfig
impl WalletUserDbConfig
Sourcepub fn new(env_db_config: WalletEnvDbConfig, user_pk: UserPk) -> Self
pub fn new(env_db_config: WalletEnvDbConfig, user_pk: UserPk) -> Self
Construct a new WalletUserDbConfig from the environment database
config and user public key.
Sourcepub fn from_credentials(
credentials: CredentialsRef<'_>,
env_db_config: WalletEnvDbConfig,
) -> Result<Self>
pub fn from_credentials( credentials: CredentialsRef<'_>, env_db_config: WalletEnvDbConfig, ) -> Result<Self>
Construct a new WalletUserDbConfig from credentials and the
environment database config.
Sourcepub fn env_db_config(&self) -> &WalletEnvDbConfig
pub fn env_db_config(&self) -> &WalletEnvDbConfig
The environment-level database configuration.
Sourcepub fn lexe_data_dir(&self) -> &PathBuf
pub fn lexe_data_dir(&self) -> &PathBuf
The top-level, root, base data directory for Lexe-related data.
<lexe_data_dir>
Sourcepub fn env_db_dir(&self) -> &PathBuf
pub fn env_db_dir(&self) -> &PathBuf
The database directory for this wallet environment.
<lexe_data_dir>/<deploy_env>-<network>-<use_sgx>
Sourcepub fn user_db_dir(&self) -> &PathBuf
pub fn user_db_dir(&self) -> &PathBuf
The user-specific database directory.
<lexe_data_dir>/<deploy_env>-<network>-<use_sgx>/<user_pk>
Trait Implementations§
Source§impl Clone for WalletUserDbConfig
impl Clone for WalletUserDbConfig
Source§fn clone(&self) -> WalletUserDbConfig
fn clone(&self) -> WalletUserDbConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WalletUserDbConfig
impl RefUnwindSafe for WalletUserDbConfig
impl Send for WalletUserDbConfig
impl Sync for WalletUserDbConfig
impl Unpin for WalletUserDbConfig
impl UnwindSafe for WalletUserDbConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more