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§