pub struct Linux<const FDS: usize = 1024> { /* private fields */ }Implementations§
Source§impl<const FDS: usize> Linux<FDS>
impl<const FDS: usize> Linux<FDS>
pub fn take_snapshot(&mut self, id: SnapshotId)
pub fn delete_snapshot(&mut self, id: SnapshotId) -> bool
pub fn restore_snapshot(&mut self, id: SnapshotId) -> bool
Source§impl<const FDS: usize> Linux<FDS>
impl<const FDS: usize> Linux<FDS>
pub fn new(fs: Fs, max_file_size: usize) -> Self
pub fn fs(&self) -> &Fs
pub fn fs_mut(&mut self) -> &mut Fs
pub fn fstatat_fuzz_input(&mut self, size: usize) -> Stat
pub fn fstatat( &mut self, dirfd: Fd, filename: &str, flags: i32, ) -> Result<Stat, LinuxError>
pub fn write(&mut self, fd: Fd, data: &[u8]) -> Result<usize, LinuxError>
pub fn open_fuzz_input(&mut self, size: usize) -> Result<Fd, LinuxError>
pub fn openat( &mut self, dirfd: Fd, pathname: &str, flags: i32, mode: i32, ) -> Result<Fd, LinuxError>
pub fn read_fuzz_input( &mut self, fd: Fd, len: usize, ) -> Result<Range<usize>, LinuxError>
pub fn read(&mut self, fd: Fd, len: usize) -> Result<&[u8], LinuxError>
pub fn seek( &mut self, fd: Fd, offset: i64, whence: i32, ) -> Result<usize, LinuxError>
pub fn close(&mut self, fd: Fd) -> Result<(), LinuxError>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more