#[repr(u8)]pub enum ArchivedScanQrResult{
Qr {
data: <Vec<u8> as Archive>::Archived,
matching_apps: <Option<Vec<ScanQrMatchingApp>> as Archive>::Archived,
},
Ur2 {
ur_type: <String as Archive>::Archived,
data: <Vec<u8> as Archive>::Archived,
matching_apps: <Option<Vec<ScanQrMatchingApp>> as Archive>::Archived,
},
LeftClicked,
RightClicked,
ButtonClicked,
}Expand description
An archived ScanQrResult
Variants§
Qr
The archived counterpart of ScanQrResult::Qr
Fields
§
data: <Vec<u8> as Archive>::ArchivedThe archived counterpart of ScanQrResult::Qr::data
§
matching_apps: <Option<Vec<ScanQrMatchingApp>> as Archive>::ArchivedThe archived counterpart of ScanQrResult::Qr::matching_apps
Ur2
The archived counterpart of ScanQrResult::Ur2
Fields
§
ur_type: <String as Archive>::ArchivedThe archived counterpart of ScanQrResult::Ur2::ur_type
§
data: <Vec<u8> as Archive>::ArchivedThe archived counterpart of ScanQrResult::Ur2::data
§
matching_apps: <Option<Vec<ScanQrMatchingApp>> as Archive>::ArchivedThe archived counterpart of ScanQrResult::Ur2::matching_apps
LeftClicked
The archived counterpart of ScanQrResult::LeftClicked
RightClicked
The archived counterpart of ScanQrResult::RightClicked
ButtonClicked
The archived counterpart of ScanQrResult::ButtonClicked
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedScanQrResult
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedScanQrResult
impl Portable for ArchivedScanQrResult
Auto Trait Implementations§
impl Freeze for ArchivedScanQrResult
impl RefUnwindSafe for ArchivedScanQrResult
impl Send for ArchivedScanQrResult
impl Sync for ArchivedScanQrResult
impl !Unpin for ArchivedScanQrResult
impl UnwindSafe for ArchivedScanQrResult
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.