pub enum NfsTransportSecurity {
None,
Tls,
Opportunistic,
}Expand description
NFS transport security mode from xprtsec= mount option (RFC 9289).
Orthogonal to NfsSecurity (the sec= authentication flavor).
TLS provides transport-layer encryption; RPCSEC_GSS provides user authentication.
They can be combined: sec=krb5,xprtsec=tls gives Kerberos auth over TLS encryption.
Variants§
None
No TLS – cleartext TCP transport (default, backward compatible).
Tls
RPC-over-TLS via RFC 9289 STARTTLS upgrade. Mandatory: fail if server
doesn’t support TLS. Detected from xprtsec=tls or xprtsec=mtls.
Opportunistic
Try RPC-over-TLS, fall back to cleartext if server rejects STARTTLS. Useful for mixed environments during TLS rollout.
Trait Implementations§
Source§impl Clone for NfsTransportSecurity
impl Clone for NfsTransportSecurity
Source§fn clone(&self) -> NfsTransportSecurity
fn clone(&self) -> NfsTransportSecurity
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 NfsTransportSecurity
impl Debug for NfsTransportSecurity
Source§impl Default for NfsTransportSecurity
impl Default for NfsTransportSecurity
Source§fn default() -> NfsTransportSecurity
fn default() -> NfsTransportSecurity
Returns the “default value” for a type. Read more
Source§impl PartialEq for NfsTransportSecurity
impl PartialEq for NfsTransportSecurity
impl Copy for NfsTransportSecurity
impl Eq for NfsTransportSecurity
impl StructuralPartialEq for NfsTransportSecurity
Auto Trait Implementations§
impl Freeze for NfsTransportSecurity
impl RefUnwindSafe for NfsTransportSecurity
impl Send for NfsTransportSecurity
impl Sync for NfsTransportSecurity
impl Unpin for NfsTransportSecurity
impl UnsafeUnpin for NfsTransportSecurity
impl UnwindSafe for NfsTransportSecurity
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.