Struct nitrokey::PasswordSlot[][src]

pub struct PasswordSlot<'p, 'a, 'b> { /* fields omitted */ }

A slot of a PasswordSafe.

Implementations

impl<'p, 'a, 'b> PasswordSlot<'p, 'a, 'b>[src]

pub fn index(&self) -> u8[src]

Returns the index of this PWS slot.

pub fn get_name(&self) -> Result<String, Error>[src]

Returns the name stored in this PWS slot.

pub fn get_login(&self) -> Result<String, Error>[src]

Returns the login stored in this PWS slot.

pub fn get_password(&self) -> Result<String, Error>[src]

Returns the password stored in this PWS slot.

Trait Implementations

impl<'p, 'a, 'b> Clone for PasswordSlot<'p, 'a, 'b>[src]

impl<'p, 'a, 'b> Copy for PasswordSlot<'p, 'a, 'b>[src]

impl<'p, 'a, 'b> Debug for PasswordSlot<'p, 'a, 'b>[src]

Auto Trait Implementations

impl<'p, 'a, 'b> !RefUnwindSafe for PasswordSlot<'p, 'a, 'b>

impl<'p, 'a, 'b> !Send for PasswordSlot<'p, 'a, 'b>

impl<'p, 'a, 'b> !Sync for PasswordSlot<'p, 'a, 'b>

impl<'p, 'a, 'b> Unpin for PasswordSlot<'p, 'a, 'b> where
    'a: 'p,
    'b: 'p, 

impl<'p, 'a, 'b> !UnwindSafe for PasswordSlot<'p, 'a, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.