Struct tartan_uefi::proto::SimpleFileSystem
source · #[repr(C)]pub struct SimpleFileSystem {
pub revision: u64,
/* private fields */
}
Expand description
Protocol for accessing a file system supported by UEFI (typically FAT).
Fields§
§revision: u64
Implemented revision of the SimpleFileSystem
protocol.
Implementations§
source§impl SimpleFileSystem
impl SimpleFileSystem
sourcepub const MIN_REVISION: u32 = 65_536u32
pub const MIN_REVISION: u32 = 65_536u32
Minimum supported SimpleFileSystem::revision
. Future versions are
guaranteed to be backwards-compatible.
sourcepub fn open_volume(&self) -> Result<&File, Status>
pub fn open_volume(&self) -> Result<&File, Status>
Get a handle to the root of the file system.
§Errors
This method can fail for many reasons, including standard I/O issues like device errors or resource exhaustion. It will also fail if the file system on the device is not supported by the UEFI implementation.
§Panics
Panics if the firmware does not behave according to the spec.
Trait Implementations§
source§impl Protocol for SimpleFileSystem
impl Protocol for SimpleFileSystem
const PROTOCOL_ID: GUID = _
Auto Trait Implementations§
impl Freeze for SimpleFileSystem
impl RefUnwindSafe for SimpleFileSystem
impl Send for SimpleFileSystem
impl Sync for SimpleFileSystem
impl Unpin for SimpleFileSystem
impl UnwindSafe for SimpleFileSystem
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