Struct sequoia_keystore_softkeys::Backend
source · pub struct Backend(/* private fields */);
Expand description
Known soft keys.
Implementations§
source§impl Backend
impl Backend
sourcepub async fn init<P: AsRef<Path>>(home: Option<P>) -> Result<Box<Self>>
pub async fn init<P: AsRef<Path>>(home: Option<P>) -> Result<Box<Self>>
Initializes a SoftKeys backend.
home
is the directory where the backend will look for its
configuration. If this is None
, then it will look in
$HOME/.sq/keystore/softkeys
.
Currently, this backend looks for certificates containing secret key material in files with an ‘asc’ or ‘pgp’ extension. Other files are silently ignored.
sourcepub async fn init_ephemeral() -> Result<Self>
pub async fn init_ephemeral() -> Result<Self>
Initializes a SoftKeys backend.
home
is the directory where the backend will look for its
configuration. If this is None
, then it will look in
$HOME/.sq/keystore/softkeys
.
Currently, this backend looks for certificates containing secret key material in files with an ‘asc’ or ‘pgp’ extension. Other files are silently ignored.
Trait Implementations§
source§impl Backend for Backend
impl Backend for Backend
source§fn scan<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn scan<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Causes the backend to look for devices. Read more
source§fn list<'a, 'async_trait>(
&'a self
) -> Pin<Box<dyn Future<Output = Box<dyn Iterator<Item = Box<dyn DeviceHandle + Send + Sync + 'a>> + Send + Sync + 'a>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn list<'a, 'async_trait>(
&'a self
) -> Pin<Box<dyn Future<Output = Box<dyn Iterator<Item = Box<dyn DeviceHandle + Send + Sync + 'a>> + Send + Sync + 'a>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Lists all devices that are available or registered. Read more
source§fn find_device<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Box<dyn DeviceHandle + Send + Sync + 'a>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_device<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Box<dyn DeviceHandle + Send + Sync + 'a>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a handle for the specified device. Read more
source§fn find_key<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Box<dyn KeyHandle + Send + Sync + 'a>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_key<'a, 'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Box<dyn KeyHandle + Send + Sync + 'a>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns a handle for the specified key. Read more
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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