pub enum SecretProtection {
Applied,
Unsupported,
}Expand description
Whether a restrictive mode was actually applied to a path.
A9: the previous API returned SshCliResult<()> and answered Ok(()) on
every non-Unix target, so secrets.key, config.toml, known_hosts and TLS
PEMs were left at whatever the platform default is while the caller believed
they were protected. Encoding “not applied” in the success value keeps the
caller honest: nothing here may claim a protection it did not perform.
Variants§
Applied
The restrictive mode was applied to the path.
Unsupported
The platform has no supported implementation; the path is unprotected.
Implementations§
Trait Implementations§
Source§impl Clone for SecretProtection
impl Clone for SecretProtection
Source§fn clone(&self) -> SecretProtection
fn clone(&self) -> SecretProtection
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 moreimpl Copy for SecretProtection
Source§impl Debug for SecretProtection
impl Debug for SecretProtection
impl Eq for SecretProtection
Source§impl PartialEq for SecretProtection
impl PartialEq for SecretProtection
impl StructuralPartialEq for SecretProtection
Auto Trait Implementations§
impl Freeze for SecretProtection
impl RefUnwindSafe for SecretProtection
impl Send for SecretProtection
impl Sync for SecretProtection
impl Unpin for SecretProtection
impl UnsafeUnpin for SecretProtection
impl UnwindSafe for SecretProtection
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.