pub struct AndroidStore { /* private fields */ }Implementations§
Source§impl AndroidStore
impl AndroidStore
Sourcepub fn from_ndk_context() -> Result<Arc<Self>, AndroidKeyringError>
pub fn from_ndk_context() -> Result<Arc<Self>, AndroidKeyringError>
Initializes AndroidBuilder using the JNI context available
on the ndk-context crate.
pub fn new( env: &JNIEnv<'_>, context: Context, ) -> Result<Arc<Self>, AndroidKeyringError>
Trait Implementations§
Source§impl CredentialStoreApi for AndroidStore
impl CredentialStoreApi for AndroidStore
Source§fn build(
&self,
service: &str,
user: &str,
_modifiers: Option<&HashMap<&str, &str>>,
) -> Result<Entry>
fn build( &self, service: &str, user: &str, _modifiers: Option<&HashMap<&str, &str>>, ) -> Result<Entry>
Create an entry specified by the given service and user,
perhaps with additional creation-time modifiers. Read more
Source§fn search(&self, _spec: &HashMap<&str, &str>) -> Result<Vec<Entry>, Error>
fn search(&self, _spec: &HashMap<&str, &str>) -> Result<Vec<Entry>, Error>
Search for credentials that match the given spec. Read more
Source§fn persistence(&self) -> CredentialPersistence
fn persistence(&self) -> CredentialPersistence
The lifetime of credentials produced by this builder. Read more
Source§impl HasJavaVm for AndroidStore
impl HasJavaVm for AndroidStore
fn java_vm(&self) -> &JavaVM
fn check_for_exception<T, F>(&self, f: F) -> Result<T, AndroidKeyringError>
Auto Trait Implementations§
impl Freeze for AndroidStore
impl RefUnwindSafe for AndroidStore
impl Send for AndroidStore
impl Sync for AndroidStore
impl Unpin for AndroidStore
impl UnwindSafe for AndroidStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more