Struct task_fs::MmiFile

source ·
pub struct MmiFile { /* private fields */ }
Expand description

Lazily computed file that contains information about a task’s memory management information.

Implementations§

source§

impl MmiFile

source

pub fn new(task_id: usize, taskref: WeakTaskRef) -> MmiFile

Trait Implementations§

source§

impl ByteReader for MmiFile

source§

fn read_at(&mut self, buf: &mut [u8], offset: usize) -> Result<usize, IoError>

Reads bytes of data from this reader into the given buffer. Read more
source§

impl ByteWriter for MmiFile

source§

fn write_at(&mut self, _buffer: &[u8], _offset: usize) -> Result<usize, IoError>

Writes bytes of data from the given buffer to this writer. Read more
source§

fn flush(&mut self) -> Result<(), IoError>

Flushes this writer’s output stream, ensuring all contents in intermediate buffers are fully written out.
source§

impl File for MmiFile

source§

fn as_mapping(&self) -> Result<&MappedPages, &'static str>

Returns a view of this file as an immutable memory-mapped region.
source§

impl FsNode for MmiFile

source§

fn get_absolute_path(&self) -> String

Recursively gets the absolute pathname as a String
source§

fn get_name(&self) -> String

Returns the string name of the node
source§

fn get_parent_dir(&self) -> Option<DirRef>

Returns the parent directory of the current node.
source§

fn set_parent_dir(&mut self, _: WeakDirRef)

Sets this node’s parent directory. This is useful for ensuring correctness when inserting or removing files or directories from their parent directory.
source§

impl KnownLength for MmiFile

source§

fn len(&self) -> usize

Returns the length (size in bytes) of this I/O stream or device.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.