Struct tartan_uefi::proto::FileMode
source · #[repr(transparent)]pub struct FileMode(_);
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 PartialEq<FileMode> for FileMode
impl PartialEq<FileMode> for FileMode
source§impl PartialOrd<FileMode> for FileMode
impl PartialOrd<FileMode> for FileMode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FileMode
impl Eq for FileMode
impl StructuralEq for FileMode
impl StructuralPartialEq for FileMode
Auto Trait Implementations§
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