pub enum PairError {
DashboardOff,
NoOrigins,
NotListed(String),
SignedOut,
Io(Error),
}Expand description
Why no pairing link was made.
Variants§
DashboardOff
The daemon serves no dashboard (--web off).
NoOrigins
[web] origins is empty: a phone cannot reach loopback.
NotListed(String)
The origin asked for is not one of [web] origins.
SignedOut
The session that asked was signed out before the code was made.
Io(Error)
No random code could be read.
Trait Implementations§
Source§impl Error for PairError
impl Error for PairError
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 !RefUnwindSafe for PairError
impl !UnwindSafe for PairError
impl Freeze for PairError
impl Send for PairError
impl Sync for PairError
impl Unpin for PairError
impl UnsafeUnpin for PairError
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