pub struct Process { /* private fields */ }
Implementations§
Source§impl Process
impl Process
pub fn new() -> Self
pub fn open(&mut self, fs: &mut FileSystem, inode: u64) -> Result<i32, ()>
pub fn read(&mut self, fd: i32, buf: &mut [u8]) -> Result<usize, ()>
pub fn write(&mut self, fd: i32, buf: &[u8]) -> Result<usize, ()>
pub fn close(&mut self, fd: i32) -> Result<i32, i32>
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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