bitwarden_uniffi::platform::fido2

Trait Fido2CredentialStore

Source
pub trait Fido2CredentialStore: Send + Sync {
    // Required methods
    fn find_credentials<'life0, 'async_trait>(
        &'life0 self,
        ids: Option<Vec<Vec<u8>>>,
        rip_id: String,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<CipherView>, Fido2CallbackError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn all_credentials<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<CipherView>, Fido2CallbackError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn save_credential<'life0, 'async_trait>(
        &'life0 self,
        cred: Cipher,
    ) -> Pin<Box<dyn Future<Output = Result<(), Fido2CallbackError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn find_credentials<'life0, 'async_trait>( &'life0 self, ids: Option<Vec<Vec<u8>>>, rip_id: String, ) -> Pin<Box<dyn Future<Output = Result<Vec<CipherView>, Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn all_credentials<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<CipherView>, Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn save_credential<'life0, 'async_trait>( &'life0 self, cred: Cipher, ) -> Pin<Box<dyn Future<Output = Result<(), Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Trait Implementations§

Source§

impl<T> FfiConverterArc<T> for dyn Fido2CredentialStore

Source§

const TYPE_ID_META: MetadataBuffer = _

Source§

type FfiType = *const c_void

Source§

fn lower(obj: Arc<Self>) -> Self::FfiType

Source§

fn try_lift(v: Self::FfiType) -> Result<Arc<Self>>

Source§

fn write(obj: Arc<Self>, buf: &mut Vec<u8>)

Source§

fn try_read(buf: &mut &[u8]) -> Result<Arc<Self>>

Source§

impl<T> LiftRef<T> for dyn Fido2CredentialStore

Implementors§