pub enum SigningDevice<Message, Id = ()>{
Unsupported {
id: String,
kind: DeviceKind,
version: Option<Version>,
reason: UnsupportedReason,
},
Locked {
id: String,
device: Arc<Mutex<Option<LockedDevice>>>,
pairing_code: Option<String>,
kind: DeviceKind,
},
Supported(SupportedDevice<Message, Id>),
}Variants§
Unsupported
Locked
Inner Option is None while unlock is in progress.
Supported(SupportedDevice<Message, Id>)
Implementations§
Source§impl<Message, Id> SigningDevice<Message, Id>
impl<Message, Id> SigningDevice<Message, Id>
Sourcepub fn id(&self) -> &str
pub fn id(&self) -> &str
Stable device identifier (serial-based when available).
Use this as the key for set_bitbox_config.
pub fn kind(&self) -> &DeviceKind
pub fn fingerprint(&self) -> Option<Fingerprint>
pub fn is_supported(&self) -> bool
pub fn clone_locked(&self) -> Option<SigningDevice<Message, Id>>
Trait Implementations§
Source§impl<Message, Id> Clone for SigningDevice<Message, Id>
impl<Message, Id> Clone for SigningDevice<Message, Id>
Source§fn clone(&self) -> SigningDevice<Message, Id>
fn clone(&self) -> SigningDevice<Message, Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Message, Id> Freeze for SigningDevice<Message, Id>
impl<Message, Id = ()> !RefUnwindSafe for SigningDevice<Message, Id>
impl<Message, Id> Send for SigningDevice<Message, Id>
impl<Message, Id> Sync for SigningDevice<Message, Id>where
Id: Sync,
impl<Message, Id> Unpin for SigningDevice<Message, Id>where
Id: Unpin,
impl<Message, Id> UnsafeUnpin for SigningDevice<Message, Id>
impl<Message, Id = ()> !UnwindSafe for SigningDevice<Message, Id>
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