pub enum NfsSecurity {
Sys,
Krb5,
Krb5i,
Krb5p,
}Expand description
NFS authentication/security flavor as reported by /proc/mounts sec= option.
Maps to RPCSEC_GSS service levels defined in RFC 2203 S5.2.1.
Variants§
Sys
AUTH_SYS – UID/GID only, no cryptographic authentication. Default when sec= absent.
Krb5
RPCSEC_GSS krb5 – mutual Kerberos authentication, no data integrity or privacy.
Krb5i
RPCSEC_GSS krb5i – Kerberos authentication + MIC per RPC (integrity protection).
Krb5p
RPCSEC_GSS krb5p – Kerberos authentication + MIC + AES encryption (privacy + integrity).
Implementations§
Source§impl NfsSecurity
impl NfsSecurity
Sourcepub fn requires_kerberos(self) -> bool
pub fn requires_kerberos(self) -> bool
Returns true for any Kerberos flavor (krb5, krb5i, krb5p).
Trait Implementations§
Source§impl Clone for NfsSecurity
impl Clone for NfsSecurity
Source§fn clone(&self) -> NfsSecurity
fn clone(&self) -> NfsSecurity
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 Debug for NfsSecurity
impl Debug for NfsSecurity
Source§impl Default for NfsSecurity
impl Default for NfsSecurity
Source§fn default() -> NfsSecurity
fn default() -> NfsSecurity
Returns the “default value” for a type. Read more
Source§impl Display for NfsSecurity
impl Display for NfsSecurity
Source§impl PartialEq for NfsSecurity
impl PartialEq for NfsSecurity
impl Copy for NfsSecurity
impl Eq for NfsSecurity
impl StructuralPartialEq for NfsSecurity
Auto Trait Implementations§
impl Freeze for NfsSecurity
impl RefUnwindSafe for NfsSecurity
impl Send for NfsSecurity
impl Sync for NfsSecurity
impl Unpin for NfsSecurity
impl UnsafeUnpin for NfsSecurity
impl UnwindSafe for NfsSecurity
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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§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.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more