pub enum Nip55Error {
NotAuthorized,
Missing,
Ipc(String),
}Expand description
Failure modes of a NIP-55 signing operation. The three variants map to distinct observable states so the UI can tell “reopen and re-grant” apart from “Amber is gone” apart from “transient hiccup”.
Variants§
NotAuthorized
Not pre-authorized: the background ContentResolver query returned a
rejected/null result and no foreground Activity was available to
prompt. Surfaces as Nip55State::NeedsAuth. MUST NEVER be read as a
valid empty decrypt — a null cursor is an authorization signal, not data.
Missing
No external signer resolvable — Amber uninstalled, or no backend
registered on this platform. Surfaces as Nip55State::Missing.
Ipc(String)
Any other IPC / parse / transport failure. Transient — does not flip the observable state (the signer is presumed still paired).
Trait Implementations§
Source§impl Clone for Nip55Error
impl Clone for Nip55Error
Source§fn clone(&self) -> Nip55Error
fn clone(&self) -> Nip55Error
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Nip55Error
impl Debug for Nip55Error
Source§impl Display for Nip55Error
impl Display for Nip55Error
Source§impl Error for Nip55Error
impl Error for Nip55Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Nip55Error
impl RefUnwindSafe for Nip55Error
impl Send for Nip55Error
impl Sync for Nip55Error
impl Unpin for Nip55Error
impl UnsafeUnpin for Nip55Error
impl UnwindSafe for Nip55Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.