Function rustix::mount::mount_unmount::mount2

source ·
pub fn mount2<Source: Arg, Target: Arg, Fs: Arg>(
    source: Option<Source>,
    target: Target,
    file_system_type: Option<Fs>,
    flags: MountFlags,
    data: Option<&CStr>,
) -> Result<()>
Expand description

mount2(source, target, filesystemtype, mountflags, data)

This is same as the mount, except it adds support for the source, target, and data being omitted, and the data is passed as a CStr rather than a path::Arg.

§References