Struct t_rust_less_lib::service::local::LocalTrustlessService
source · pub struct LocalTrustlessService { /* private fields */ }Implementations§
source§impl LocalTrustlessService
impl LocalTrustlessService
pub fn new() -> ServiceResult<LocalTrustlessService>
Trait Implementations§
source§impl Debug for LocalTrustlessService
impl Debug for LocalTrustlessService
source§impl TrustlessService for LocalTrustlessService
impl TrustlessService for LocalTrustlessService
source§fn list_stores(&self) -> ServiceResult<Vec<StoreConfig>>
fn list_stores(&self) -> ServiceResult<Vec<StoreConfig>>
List all store configurations
source§fn upsert_store_config(&self, store_config: StoreConfig) -> ServiceResult<()>
fn upsert_store_config(&self, store_config: StoreConfig) -> ServiceResult<()>
Create or update a store configuration
source§fn delete_store_config(&self, name: &str) -> ServiceResult<()>
fn delete_store_config(&self, name: &str) -> ServiceResult<()>
Delete a store configuration
(This will only delete the configuration, the store itself will be left untouched)
source§fn open_store(&self, name: &str) -> SecretStoreResult<Arc<dyn SecretsStore>>
fn open_store(&self, name: &str) -> SecretStoreResult<Arc<dyn SecretsStore>>
Open a store
source§fn get_default_store(&self) -> ServiceResult<Option<String>>
fn get_default_store(&self) -> ServiceResult<Option<String>>
Get the name of the store that should be opened by default
source§fn set_default_store(&self, name: &str) -> ServiceResult<()>
fn set_default_store(&self, name: &str) -> ServiceResult<()>
Set the name of the store that should be opened by default
fn secret_to_clipboard( &self, store_name: &str, block_id: &str, properties: &[&str] ) -> ServiceResult<Arc<dyn ClipboardControl>>
fn poll_events(&self, last_id: u64) -> ServiceResult<Vec<Event>>
fn generate_id(&self) -> ServiceResult<String>
fn generate_password( &self, param: PasswordGeneratorParam ) -> ServiceResult<String>
fn check_autolock(&self)
fn needs_synchronization(&self) -> bool
fn synchronize(&self) -> Option<DateTime<Utc>>
Auto Trait Implementations§
impl RefUnwindSafe for LocalTrustlessService
impl Send for LocalTrustlessService
impl Sync for LocalTrustlessService
impl Unpin for LocalTrustlessService
impl UnwindSafe for LocalTrustlessService
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.