Linux

Struct Linux 

Source
pub struct Linux<const FDS: usize = 1024> { /* private fields */ }

Implementations§

Source§

impl<const FDS: usize> Linux<FDS>

Source

pub fn take_snapshot(&mut self, id: SnapshotId)

Source

pub fn delete_snapshot(&mut self, id: SnapshotId) -> bool

Source

pub fn restore_snapshot(&mut self, id: SnapshotId) -> bool

Source§

impl<const FDS: usize> Linux<FDS>

Source

pub fn new(fs: Fs, max_file_size: usize) -> Self

Source

pub fn fs(&self) -> &Fs

Source

pub fn fs_mut(&mut self) -> &mut Fs

Source

pub fn fstatat_fuzz_input(&mut self, size: usize) -> Stat

Source

pub fn fstatat( &mut self, dirfd: Fd, filename: &str, flags: i32, ) -> Result<Stat, LinuxError>

Source

pub fn write(&mut self, fd: Fd, data: &[u8]) -> Result<usize, LinuxError>

Source

pub fn open_fuzz_input(&mut self, size: usize) -> Result<Fd, LinuxError>

Source

pub fn openat( &mut self, dirfd: Fd, pathname: &str, flags: i32, mode: i32, ) -> Result<Fd, LinuxError>

Source

pub fn read_fuzz_input( &mut self, fd: Fd, len: usize, ) -> Result<Range<usize>, LinuxError>

Source

pub fn read(&mut self, fd: Fd, len: usize) -> Result<&[u8], LinuxError>

Source

pub fn seek( &mut self, fd: Fd, offset: i64, whence: i32, ) -> Result<usize, LinuxError>

Source

pub fn close(&mut self, fd: Fd) -> Result<(), LinuxError>

Source

pub fn is_fuzz_input(&mut self, fd: Fd) -> bool

Auto Trait Implementations§

§

impl<const FDS: usize> Freeze for Linux<FDS>

§

impl<const FDS: usize> RefUnwindSafe for Linux<FDS>

§

impl<const FDS: usize> Send for Linux<FDS>

§

impl<const FDS: usize> Sync for Linux<FDS>

§

impl<const FDS: usize> Unpin for Linux<FDS>

§

impl<const FDS: usize> UnwindSafe for Linux<FDS>

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.