#[repr(transparent)]
pub struct FileHandle(_);
Expand description

An opaque handle to some contiguous block of data on a volume.

A FileHandle is just a wrapper around a UEFI file handle. Under the hood, it can either be a RegularFile or a Directory; use the into_type() or the unsafe {RegularFile, Directory}::new() methods to perform the conversion.

Dropping this structure will result in the file handle being closed.

Implementations

Converts File into a more specific subtype based on if it is a directory or not. It does this via a call to get_position.

Trait Implementations

Executes the destructor for this type. Read more

Try to open a file relative to this file. Read more

Close this file handle. Same as dropping this structure.

Closes and deletes this file Read more

Queries some information about a file Read more

Sets some information about a file Read more

Flushes all modified data associated with the file handle to the device Read more

Get the dynamically allocated info for a file

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.