[][src]Struct uefi::proto::media::file::FileHandle

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

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

impl FileHandle[src]

pub fn into_type(self) -> Result<FileType>[src]

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

impl Drop for FileHandle[src]

impl File for FileHandle[src]

Auto Trait Implementations

impl !Send for FileHandle

impl !Sync for FileHandle

impl Unpin for FileHandle

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.