pub enum SelectError<E> {
Source(E),
Device(HWIDeviceError),
NoUsableDevice(NoUsableDevice),
HostPassphraseRejected,
}Expand description
A discovery, opening, or wallet-selection failure.
Variants§
Source(E)
The source could not list candidates.
Tuple Fields
§
0: EThe source error.
Device(HWIDeviceError)
A wallet operation failed or was cancelled.
Tuple Fields
§
0: HWIDeviceErrorThe wallet-operation error.
NoUsableDevice(NoUsableDevice)
Candidates were found but none could be used.
Tuple Fields
§
0: NoUsableDeviceThe rejected candidates and their errors.
HostPassphraseRejected
A host passphrase was supplied for a BitBox02.
Trait Implementations§
Source§impl<E> Debug for SelectError<E>where
E: Debug,
impl<E> Debug for SelectError<E>where
E: Debug,
Source§impl<E> Display for SelectError<E>where
E: Display,
impl<E> Display for SelectError<E>where
E: Display,
Source§impl<E> Error for SelectError<E>
impl<E> Error for SelectError<E>
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()
Source§impl<E> From<HWIDeviceError> for SelectError<E>
impl<E> From<HWIDeviceError> for SelectError<E>
Source§fn from(source: HWIDeviceError) -> SelectError<E>
fn from(source: HWIDeviceError) -> SelectError<E>
Converts to this type from the input type.
Source§impl<E> From<NoUsableDevice> for SelectError<E>
impl<E> From<NoUsableDevice> for SelectError<E>
Source§fn from(source: NoUsableDevice) -> SelectError<E>
fn from(source: NoUsableDevice) -> SelectError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for SelectError<E>
impl<E> !UnwindSafe for SelectError<E>
impl<E> Freeze for SelectError<E>where
E: Freeze,
impl<E> Send for SelectError<E>where
E: Send,
impl<E> Sync for SelectError<E>where
E: Sync,
impl<E> Unpin for SelectError<E>where
E: Unpin,
impl<E> UnsafeUnpin for SelectError<E>where
E: 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
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> 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.