Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Enum

ArchivedSeed

#[repr(u8)]
pub enum ArchivedSeed
where [u8; 16]: Archive, [u8; 32]: Archive,
{ Twelve(<[u8; 16] as Archive>::Archived), TwentyFour(<[u8; 32] as Archive>::Archived), }
Expand description

An archived Seed

Variants

Twelve(<[u8; 16] as Archive>::Archived)

The archived counterpart of Seed::Twelve

Tuple Fields

0: <[u8; 16] as Archive>::Archived

The archived counterpart of Seed::Twelve::0

TwentyFour(<[u8; 32] as Archive>::Archived)

The archived counterpart of Seed::TwentyFour

Tuple Fields

0: <[u8; 32] as Archive>::Archived

The archived counterpart of Seed::TwentyFour::0

Trait Implementations

impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedSeed
where [u8; 16]: Archive, [u8; 32]: Archive, <__C as Fallible>::Error: Source, <[u8; 16] as Archive>::Archived: CheckBytes<__C>, <[u8; 32] as Archive>::Archived: CheckBytes<__C>,

unsafe fn check_bytes( value: *const Self, context: &mut __C, ) -> Result<(), <__C as Fallible>::Error>

Checks whether the given pointer points to a valid value within the given context. Read more

impl Portable for ArchivedSeed
where [u8; 16]: Archive, [u8; 32]: Archive, <[u8; 16] as Archive>::Archived: Portable, <[u8; 32] as Archive>::Archived: Portable,

Auto Trait Implementations

impl Freeze for ArchivedSeed

impl RefUnwindSafe for ArchivedSeed

impl Send for ArchivedSeed

impl Sync for ArchivedSeed

impl Unpin for ArchivedSeed

impl UnsafeUnpin for ArchivedSeed

impl UnwindSafe for ArchivedSeed