pub struct ProcessFdTable { /* private fields */ }Implementations§
Source§impl ProcessFdTable
impl ProcessFdTable
pub fn max_fds(&self) -> usize
pub fn init_stdio( &mut self, stdin_desc: SharedFileDescription, stdout_desc: SharedFileDescription, stderr_desc: SharedFileDescription, )
pub fn init_stdio_with_types( &mut self, stdin_desc: SharedFileDescription, stdin_type: u8, stdout_desc: SharedFileDescription, stdout_type: u8, stderr_desc: SharedFileDescription, stderr_type: u8, )
pub fn open(&mut self, path: &str, flags: u32) -> FdResult<u32>
pub fn open_with_filetype( &mut self, path: &str, flags: u32, filetype: u8, ) -> FdResult<u32>
pub fn open_with_details( &mut self, path: &str, flags: u32, filetype: u8, lock_target: Option<FileLockTarget>, ) -> FdResult<u32>
pub fn open_with( &mut self, description: SharedFileDescription, filetype: u8, target_fd: Option<u32>, ) -> FdResult<u32>
pub fn get(&self, fd: u32) -> Option<&FdEntry>
pub fn close(&mut self, fd: u32) -> bool
pub fn dup(&mut self, fd: u32) -> FdResult<u32>
pub fn dup_with_status_flags( &mut self, fd: u32, status_flags_override: Option<u32>, ) -> FdResult<u32>
pub fn dup2(&mut self, old_fd: u32, new_fd: u32) -> FdResult<()>
pub fn stat(&self, fd: u32) -> FdResult<FdStat>
pub fn fcntl(&mut self, fd: u32, command: u32, arg: u32) -> FdResult<u32>
pub fn fork(&self) -> Self
pub fn close_all(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Values<'_, u32, FdEntry>
Trait Implementations§
Source§impl Clone for ProcessFdTable
impl Clone for ProcessFdTable
Source§fn clone(&self) -> ProcessFdTable
fn clone(&self) -> ProcessFdTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessFdTable
impl Debug for ProcessFdTable
Source§impl<'a> IntoIterator for &'a ProcessFdTable
impl<'a> IntoIterator for &'a ProcessFdTable
Auto Trait Implementations§
impl Freeze for ProcessFdTable
impl RefUnwindSafe for ProcessFdTable
impl Send for ProcessFdTable
impl Sync for ProcessFdTable
impl Unpin for ProcessFdTable
impl UnsafeUnpin for ProcessFdTable
impl UnwindSafe for ProcessFdTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more