#[non_exhaustive]pub struct NfsMount {
pub server: String,
pub path: String,
pub mount_point: String,
/* private fields */
}Available on crate feature
job-service only.Expand description
Represents a mount configuration for Network File System (NFS) to mount.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server: StringRequired. IP address of the NFS server.
path: StringRequired. Source path exported from NFS server.
Has to start with ‘/’, and combined with the ip address, it indicates
the source mount path in the form of server:path
mount_point: StringRequired. Destination mount path. The NFS will be mounted for the user under /mnt/nfs/<mount_point>
Implementations§
Trait Implementations§
impl StructuralPartialEq for NfsMount
Auto Trait Implementations§
impl Freeze for NfsMount
impl RefUnwindSafe for NfsMount
impl Send for NfsMount
impl Sync for NfsMount
impl Unpin for NfsMount
impl UnwindSafe for NfsMount
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