File

Struct File 

Source
#[repr(C)]
pub struct File { pub Revision: u64, pub Open: extern "efiapi" fn(_: &mut File, NewHandle: &mut *mut File, FileName: *const u16, OpenMode: u64, Attributes: u64) -> Status, pub Close: extern "efiapi" fn(&mut File) -> Status, pub Delete: extern "efiapi" fn(&mut File) -> Status, pub Read: extern "efiapi" fn(_: &mut File, BufferSize: &mut usize, Buffer: *mut u8) -> Status, pub Write: extern "efiapi" fn(_: &mut File, BufferSize: &mut usize, Buffer: *const u8) -> Status, pub SetPosition: extern "efiapi" fn(_: &mut File, Position: u64) -> Status, pub GetPosition: extern "efiapi" fn(_: &mut File, Position: &mut u64) -> Status, pub GetInfo: extern "efiapi" fn(_: &mut File, InformationType: &Guid, BufferSize: &mut usize, Buffer: *mut u8) -> Status, pub SetInfo: extern "efiapi" fn(_: &mut File, InformationType: &Guid, BufferSize: &mut usize, Buffer: *const u8) -> Status, pub Flush: extern "efiapi" fn(&mut File) -> Status, }

Fields§

§Revision: u64§Open: extern "efiapi" fn(_: &mut File, NewHandle: &mut *mut File, FileName: *const u16, OpenMode: u64, Attributes: u64) -> Status§Close: extern "efiapi" fn(&mut File) -> Status§Delete: extern "efiapi" fn(&mut File) -> Status§Read: extern "efiapi" fn(_: &mut File, BufferSize: &mut usize, Buffer: *mut u8) -> Status§Write: extern "efiapi" fn(_: &mut File, BufferSize: &mut usize, Buffer: *const u8) -> Status§SetPosition: extern "efiapi" fn(_: &mut File, Position: u64) -> Status§GetPosition: extern "efiapi" fn(_: &mut File, Position: &mut u64) -> Status§GetInfo: extern "efiapi" fn(_: &mut File, InformationType: &Guid, BufferSize: &mut usize, Buffer: *mut u8) -> Status§SetInfo: extern "efiapi" fn(_: &mut File, InformationType: &Guid, BufferSize: &mut usize, Buffer: *const u8) -> Status§Flush: extern "efiapi" fn(&mut File) -> Status

Auto Trait Implementations§

§

impl Freeze for File

§

impl RefUnwindSafe for File

§

impl Send for File

§

impl Sync for File

§

impl Unpin for File

§

impl UnwindSafe for File

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.