pub trait SecretInputProvider: Send + Sync {
// Required methods
fn read_new_account_password(
&self,
from_stdin: bool,
) -> Result<SecretString, AppError>;
fn read_login_secrets(
&self,
mode: LoginSecretMode,
) -> Result<LoginSecrets, AppError>;
// Provided methods
fn read_storage_secret(
&self,
_source: SecretSource,
_limit: usize,
) -> SecretInputFuture<'_> { ... }
fn read_raw_secret(&self) -> Result<SecretString, AppError> { ... }
}Required Methods§
fn read_new_account_password( &self, from_stdin: bool, ) -> Result<SecretString, AppError>
fn read_login_secrets( &self, mode: LoginSecretMode, ) -> Result<LoginSecrets, AppError>
Provided Methods§
Sourcefn read_storage_secret(
&self,
_source: SecretSource,
_limit: usize,
) -> SecretInputFuture<'_>
fn read_storage_secret( &self, _source: SecretSource, _limit: usize, ) -> SecretInputFuture<'_>
Read a bounded UTF-8 storage credential, removing one final LF or CRLF.
Sourcefn read_raw_secret(&self) -> Result<SecretString, AppError>
fn read_raw_secret(&self) -> Result<SecretString, AppError>
Read exact UTF-8 bytes through EOF, including line endings and empty input.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".