Struct aws_sdk_fsx::types::OpenZfsClientConfiguration
source · #[non_exhaustive]pub struct OpenZfsClientConfiguration {
pub clients: Option<String>,
pub options: Option<Vec<String>>,
}
Expand description
Specifies who can mount an OpenZFS file system and the options available while mounting the file system.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.clients: Option<String>
A value that specifies who can mount the file system. You can provide a wildcard character (*
), an IP address (0.0.0.0
), or a CIDR address (192.0.2.0/24
). By default, Amazon FSx uses the wildcard character when specifying the client.
options: Option<Vec<String>>
The options to use when mounting the file system. For a list of options that you can use with Network File System (NFS), see the exports(5) - Linux man page. When choosing your options, consider the following:
-
crossmnt
is used by default. If you don't specifycrossmnt
when changing the client configuration, you won't be able to see or access snapshots in your file system's snapshot directory. -
sync
is used by default. If you instead specifyasync
, the system acknowledges writes before writing to disk. If the system crashes before the writes are finished, you lose the unwritten data.
Implementations§
source§impl OpenZfsClientConfiguration
impl OpenZfsClientConfiguration
sourcepub fn clients(&self) -> Option<&str>
pub fn clients(&self) -> Option<&str>
A value that specifies who can mount the file system. You can provide a wildcard character (*
), an IP address (0.0.0.0
), or a CIDR address (192.0.2.0/24
). By default, Amazon FSx uses the wildcard character when specifying the client.
sourcepub fn options(&self) -> &[String]
pub fn options(&self) -> &[String]
The options to use when mounting the file system. For a list of options that you can use with Network File System (NFS), see the exports(5) - Linux man page. When choosing your options, consider the following:
-
crossmnt
is used by default. If you don't specifycrossmnt
when changing the client configuration, you won't be able to see or access snapshots in your file system's snapshot directory. -
sync
is used by default. If you instead specifyasync
, the system acknowledges writes before writing to disk. If the system crashes before the writes are finished, you lose the unwritten data.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .options.is_none()
.
source§impl OpenZfsClientConfiguration
impl OpenZfsClientConfiguration
sourcepub fn builder() -> OpenZfsClientConfigurationBuilder
pub fn builder() -> OpenZfsClientConfigurationBuilder
Creates a new builder-style object to manufacture OpenZfsClientConfiguration
.
Trait Implementations§
source§impl Clone for OpenZfsClientConfiguration
impl Clone for OpenZfsClientConfiguration
source§fn clone(&self) -> OpenZfsClientConfiguration
fn clone(&self) -> OpenZfsClientConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OpenZfsClientConfiguration
impl Debug for OpenZfsClientConfiguration
source§impl PartialEq for OpenZfsClientConfiguration
impl PartialEq for OpenZfsClientConfiguration
source§fn eq(&self, other: &OpenZfsClientConfiguration) -> bool
fn eq(&self, other: &OpenZfsClientConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OpenZfsClientConfiguration
Auto Trait Implementations§
impl Freeze for OpenZfsClientConfiguration
impl RefUnwindSafe for OpenZfsClientConfiguration
impl Send for OpenZfsClientConfiguration
impl Sync for OpenZfsClientConfiguration
impl Unpin for OpenZfsClientConfiguration
impl UnwindSafe for OpenZfsClientConfiguration
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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>
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