Skip to main content

Ext4Strate

Struct Ext4Strate 

Source
pub(crate) struct Ext4Strate {
    pub(crate) _fs: Ext4FileSystem,
}
Expand description

EXT4 Strate state

Fields§

§_fs: Ext4FileSystem

Implementations§

Source§

impl Ext4Strate

Source

pub(crate) fn new(fs: Ext4FileSystem) -> Self

Creates a new instance.

Source

pub(crate) fn ok_reply(sender: u64) -> IpcMessage

Implements ok reply.

Source

pub(crate) fn err_reply(sender: u64, status: u32) -> IpcMessage

Implements err reply.

Source

pub(crate) fn read_u16(payload: &[u8], start: usize) -> Result<u16, u32>

Reads u16.

Source

pub(crate) fn read_u32(payload: &[u8], start: usize) -> Result<u32, u32>

Reads u32.

Source

pub(crate) fn read_u64(payload: &[u8], start: usize) -> Result<u64, u32>

Reads u64.

Source

pub(crate) fn parse_path<'a>( payload: &'a [u8], len_offset: usize, data_offset: usize, max_len: usize, ) -> Result<&'a str, u32>

Source

pub(crate) fn handle_open(&mut self, sender: u64, payload: &[u8]) -> IpcMessage

Implements handle open.

Source

pub(crate) fn handle_read(&mut self, sender: u64, payload: &[u8]) -> IpcMessage

Implements handle read.

Source

pub(crate) fn handle_write(&mut self, sender: u64, payload: &[u8]) -> IpcMessage

Implements handle write.

Source

pub(crate) fn handle_close(&mut self, sender: u64, payload: &[u8]) -> IpcMessage

Implements handle close.

Source

pub(crate) fn serve(&mut self, port_handle: u64) -> !

Main strate loop

Auto Trait Implementations§

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.