pub enum SecureStoreError {
Unavailable(String),
Backend(String),
}Expand description
Why a SecureStore could not produce a key.
Variants§
This platform or build has no secure storage to hold the key. A caller that meets this must not silently fall back to an unprotected key — that would look like anchor B while being none. It should use the unsealed path (which makes no rollback claim) and say so. A store that exists but cannot be reached right now (a Keychain before first unlock, a Keystore that needs the user) is this too, with the reason: the client reports it as its own kind, so the app can retry after the unlock rather than treat it as tampering.
Backend(String)
The secure-storage backend was present but failed. The string is for a log line, not for matching on.
Trait Implementations§
Source§impl Debug for SecureStoreError
impl Debug for SecureStoreError
Source§impl Display for SecureStoreError
impl Display for SecureStoreError
Source§impl Error for SecureStoreError
impl Error for SecureStoreError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SecureStoreError
impl RefUnwindSafe for SecureStoreError
impl Send for SecureStoreError
impl Sync for SecureStoreError
impl Unpin for SecureStoreError
impl UnsafeUnpin for SecureStoreError
impl UnwindSafe for SecureStoreError
Blanket Implementations§
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