pub enum Value<'a> {
Undefined,
Flag,
String(&'a CStr),
Blob(&'a mut [u8]),
File(&'a File),
Filename(&'a Filename, i32),
}
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 Filename, i32)
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
impl<'a> !RefUnwindSafe for Value<'a>
impl<'a> !Send for Value<'a>
impl<'a> !Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> !UnwindSafe for Value<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more