Struct tartan_uefi::proto::FileMode
source · pub struct FileMode(/* private fields */);
Expand description
Controls how a file is opened.
The UEFI spec defines separate read/write/create flags, but they are only valid in specific combinations, so this enum defines those combinations.
Implementations§
source§impl FileMode
impl FileMode
sourcepub const ReadWriteCreate: Self = _
pub const ReadWriteCreate: Self = _
File will be read and written, and will be created if it does not exist.
Trait Implementations§
source§impl Ord for FileMode
impl Ord for FileMode
source§impl PartialOrd for FileMode
impl PartialOrd for FileMode
impl Copy for FileMode
impl Eq for FileMode
impl StructuralPartialEq for FileMode
Auto Trait Implementations§
impl Freeze for FileMode
impl RefUnwindSafe for FileMode
impl Send for FileMode
impl Sync for FileMode
impl Unpin for FileMode
impl UnwindSafe for FileMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)