pub enum MobileError {
NeedsHomeUrl,
PushEndpoint {
reason: String,
},
PushKey {
reason: String,
},
PasskeyUnavailable,
PasskeyRefused {
reason: String,
},
RegistrationClosed,
PasskeyExists,
NoPasskey {
hint: &'static str,
},
Challenge,
QrUrl {
home: String,
},
Surface(SurfaceError),
Source(AdkError),
}Expand description
Why a phone route, a push or a passkey check failed (spec 3.3 §5.4, §8.2).
Converts into AdkError with a surface.phone.* code, or the engine’s own code for an
engine refusal; the phone’s routes answer with its problem document and HTTP status.
§Example
use adk_surface::mobile::MobileError;
let error = adk_core::AdkError::from(MobileError::NeedsHomeUrl);
assert_eq!(error.code, "surface.phone.needs_home_url");
assert_eq!(error.http_status_code(), 400);Variants§
NeedsHomeUrl
The server was started without the home’s public URL, which push, passkeys and pairing links need.
PushEndpoint
A push subscription points at a service the allowlist does not name, or not over https.
PushKey
The push key could not be read, created or used.
Confirm it’s you needs a passkey verifier this server does not have.
PasskeyRefused
A passkey registration or assertion did not verify.
RegistrationClosed
A phone registers its passkey only shortly after pairing.
PasskeyExists
The phone already has its passkey.
NoPasskey
The caller has no passkey to confirm with yet (spec 3.3 §8.2).
Challenge
The confirmation was not started here, was used, expired or belongs to another answer.
QrUrl
The QR code’s URL is not one of this home’s.
Surface(SurfaceError)
The engine refused or failed.
Source(AdkError)
A store or the kernel failed.
Trait Implementations§
Source§impl Debug for MobileError
impl Debug for MobileError
Source§impl Display for MobileError
impl Display for MobileError
Source§impl Error for MobileError
impl Error for MobileError
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()
Source§impl From<AdkError> for MobileError
impl From<AdkError> for MobileError
Source§impl From<MobileError> for AdkError
impl From<MobileError> for AdkError
Source§fn from(error: MobileError) -> Self
fn from(error: MobileError) -> Self
Source§impl From<SurfaceError> for MobileError
impl From<SurfaceError> for MobileError
Source§fn from(source: SurfaceError) -> Self
fn from(source: SurfaceError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for MobileError
impl !UnwindSafe for MobileError
impl Forget for MobileError
impl Freeze for MobileErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
*const ErrorDetails is !null: Freeze,
PhantomData<ErrorDetails>: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
impl Move for MobileError
impl Send for MobileError
impl Sync for MobileError
impl Unpin for MobileError
impl UnsafeUnpin for MobileErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const ErrorDetails is !null: UnsafeUnpin,
PhantomData<ErrorDetails>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more