pub enum Value<'a> {
    Undefined,
    Flag,
    String(&'a CStr),
    Blob(&'a mut [u8]),
    File(&'a File),
    Filename(&'a Filenamei32),
}
Expand description

The value of a file system parameter.

Variants

Undefined

The value is undefined.

Flag

There is no value, but parameter itself is a flag.

String(&'a CStr)

The value is the given string.

Blob(&'a mut [u8])

The value is the given binary blob.

File(&'a File)

The value is the given file.

Filename(&'a Filenamei32)

The value is the given filename and the given directory file descriptor (which may be AT_FDCWD, to indicate the current directory).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.