[−][src]Struct rustotpony::RusTOTPony
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]
&mut self,
name: &str,
username: &str,
secret: &str
) -> Result<(), String>
pub fn delete_application(&mut self, name: &str) -> Result<(), String>
[src]
pub fn rename_application(
&mut self,
name: &str,
newname: &str
) -> Result<(), String>
[src]
&mut self,
name: &str,
newname: &str
) -> Result<(), String>
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,
DB: Send,
impl<DB> Sync for RusTOTPony<DB> where
DB: Sync,
DB: Sync,
impl<DB> Unpin for RusTOTPony<DB> where
DB: Unpin,
DB: Unpin,
impl<DB> UnwindSafe for RusTOTPony<DB> where
DB: UnwindSafe,
DB: UnwindSafe,
impl<DB> RefUnwindSafe for RusTOTPony<DB> where
DB: RefUnwindSafe,
DB: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,