[][src]Struct rustotpony::RusTOTPony

pub struct RusTOTPony<DB: Database> { /* fields omitted */ }

Methods

impl<DB: Database> RusTOTPony<DB>[src]

pub fn new(db: DB) -> RusTOTPony<DB>[src]

pub fn create_application(
    &mut self,
    name: &str,
    username: &str,
    secret: &str
) -> Result<(), String>
[src]

pub fn delete_application(&mut self, name: &str) -> Result<(), String>[src]

pub fn rename_application(
    &mut self,
    name: &str,
    newname: &str
) -> Result<(), String>
[src]

pub fn get_applications(&self) -> Result<&HashMap<String, GenApp>, String>[src]

pub fn get_application(&self, name: &str) -> Result<&GenApp, String>[src]

pub fn delete_all_applications(&mut self)[src]

pub fn flush(&self)[src]

Auto Trait Implementations

impl<DB> Send for RusTOTPony<DB> where
    DB: Send

impl<DB> Sync for RusTOTPony<DB> where
    DB: Sync

impl<DB> Unpin for RusTOTPony<DB> where
    DB: Unpin

impl<DB> UnwindSafe for RusTOTPony<DB> where
    DB: UnwindSafe

impl<DB> RefUnwindSafe for RusTOTPony<DB> where
    DB: RefUnwindSafe

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,