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

Struct

ChangePin

pub struct ChangePin {
    pub pin: RawPin,
    pub seed: Option<Seed>,
    pub pin_entry: PinEntryMode,
}

Fields

pin: RawPinseed: Option<Seed>pin_entry: PinEntryMode

Trait Implementations

impl Archive for ChangePin
where RawPin: Archive, Option<Seed>: Archive, PinEntryMode: Archive,

const COPY_OPTIMIZATION: CopyOptimization<Self>

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more

type Archived = ArchivedChangePin

The archived representation of this type. Read more

type Resolver = ChangePinResolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.

fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)

Creates the archived version of this value at the given position and writes it to the given output. Read more

impl BlockingArchive for ChangePin

type Response = Result<(), PinError>

response type for this message

impl Clone for ChangePin

fn clone(&self) -> ChangePin

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl<__D: Fallible + ?Sized> Deserialize<ChangePin, __D> for Archived<ChangePin>
where RawPin: Archive, <RawPin as Archive>::Archived: Deserialize<RawPin, __D>, Option<Seed>: Archive, <Option<Seed> as Archive>::Archived: Deserialize<Option<Seed>, __D>, PinEntryMode: Archive, <PinEntryMode as Archive>::Archived: Deserialize<PinEntryMode, __D>,

fn deserialize( &self, deserializer: &mut __D, ) -> Result<ChangePin, <__D as Fallible>::Error>

Deserializes using the given deserializer

impl MessageId for ChangePin

const ID: MessageId = 2usize

unique message identifier

const SERVER: &'static str = "os/security"

target server name

impl<__S: Fallible + ?Sized> Serialize<__S> for ChangePin
where RawPin: Serialize<__S>, Option<Seed>: Serialize<__S>, PinEntryMode: Serialize<__S>,

fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.

Auto Trait Implementations

impl Freeze for ChangePin

impl RefUnwindSafe for ChangePin

impl Send for ChangePin

impl Sync for ChangePin

impl Unpin for ChangePin

impl UnsafeUnpin for ChangePin

impl UnwindSafe for ChangePin