#[non_exhaustive]pub enum AppOpenError {
Refused {
code: String,
message: String,
},
Call(CallError),
}Expand description
Failure to ask the daemon to open an installed operator app.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Refused
A daemon error frame. Codes are open strings so future refusals survive.
The current checks, in order, are app_open_not_used,
app_open_disabled, app_unknown, app_not_installed, and
app_verification_failed (see subc_control::APP_OPEN_ERROR_CODES).
An already-running app succeeds between the unknown and installed checks.
Call(CallError)
A transport or protocol failure rather than a daemon refusal.
Trait Implementations§
Source§impl Debug for AppOpenError
impl Debug for AppOpenError
Source§impl Display for AppOpenError
impl Display for AppOpenError
Source§impl Error for AppOpenError
impl Error for AppOpenError
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 !RefUnwindSafe for AppOpenError
impl !UnwindSafe for AppOpenError
impl Forget for AppOpenError
impl Freeze for AppOpenErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const ErrorBody is !null: Freeze,
PhantomData<ErrorBody>: Freeze,
PhantomData<String>: Freeze,
impl Move for AppOpenError
impl Send for AppOpenError
impl Sync for AppOpenError
impl Unpin for AppOpenError
impl UnsafeUnpin for AppOpenErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const ErrorBody is !null: UnsafeUnpin,
PhantomData<ErrorBody>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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