pub struct SecretService {
provider: Arc<Mutex<Option<SecretService<'static>>>>,
}Fields§
§provider: Arc<Mutex<Option<SecretService<'static>>>>Implementations§
Source§impl SecretService
impl SecretService
async fn get_or_create_provider( &self, ) -> MutexGuard<'_, Option<Provider<'static>>>
Trait Implementations§
Source§impl Clone for SecretService
impl Clone for SecretService
Source§fn clone(&self) -> SecretService
fn clone(&self) -> SecretService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CredentialStore for SecretService
impl CredentialStore for SecretService
Source§fn is_supported(&self) -> bool
fn is_supported(&self) -> bool
Check if the credential store service is supported on this system.
Source§async fn status(&self) -> CredentialStatus
async fn status(&self) -> CredentialStatus
Get the current service status.
Source§async fn load(
&self,
auth_server: String,
username: String,
) -> Result<String, CredentialError>
async fn load( &self, auth_server: String, username: String, ) -> Result<String, CredentialError>
Load password for the specific user.
Source§async fn save(&self, credentials: Credentials) -> Result<(), CredentialError>
async fn save(&self, credentials: Credentials) -> Result<(), CredentialError>
Save credentials.
Source§impl Default for SecretService
impl Default for SecretService
Source§fn default() -> SecretService
fn default() -> SecretService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SecretService
impl !UnwindSafe for SecretService
impl Freeze for SecretService
impl Send for SecretService
impl Sync for SecretService
impl Unpin for SecretService
impl UnsafeUnpin for SecretService
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.