pub struct ConnectionStore { /* private fields */ }Implementations§
Source§impl ConnectionStore
impl ConnectionStore
pub fn open( dir: &Path, credentials: Arc<dyn CredentialStore>, ) -> Result<Self, StoreError>
pub fn list(&self) -> Vec<ConnectionProfile>
pub fn get(&self, id: &str) -> Option<ConnectionProfile>
Sourcepub fn upsert(
&self,
profile: ConnectionProfile,
secret: Option<&str>,
) -> Result<(), StoreError>
pub fn upsert( &self, profile: ConnectionProfile, secret: Option<&str>, ) -> Result<(), StoreError>
Insert or update a profile. If secret is Some, also writes it to
the keyring; passing None leaves the existing keyring entry alone (so
edits to host/port/user don’t require re-entering the password).
pub fn delete(&self, id: &str) -> Result<(), StoreError>
pub fn set_secret(&self, id: &str, secret: &str) -> Result<(), StoreError>
pub fn has_secret(&self, id: &str) -> bool
Trait Implementations§
Source§impl Clone for ConnectionStore
impl Clone for ConnectionStore
Source§fn clone(&self) -> ConnectionStore
fn clone(&self) -> ConnectionStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConnectionLookup for ConnectionStore
impl ConnectionLookup for ConnectionStore
fn resolve_zowe( &self, connection_id: &str, ) -> Result<ResolvedZoweConnection, RuntimeConnectionError>
Auto Trait Implementations§
impl Freeze for ConnectionStore
impl !RefUnwindSafe for ConnectionStore
impl Send for ConnectionStore
impl Sync for ConnectionStore
impl Unpin for ConnectionStore
impl UnsafeUnpin for ConnectionStore
impl !UnwindSafe for ConnectionStore
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more