pub struct FdTableManager { /* private fields */ }Implementations§
Source§impl FdTableManager
impl FdTableManager
pub fn new() -> Self
pub fn with_max_fds(max_fds: usize) -> Self
pub fn create(&mut self, pid: u32) -> &mut ProcessFdTable
pub fn create_with_stdio( &mut self, pid: u32, stdin_override: Option<StdioOverride>, stdout_override: Option<StdioOverride>, stderr_override: Option<StdioOverride>, ) -> &mut ProcessFdTable
pub fn fork(&mut self, parent_pid: u32, child_pid: u32) -> &mut ProcessFdTable
pub fn get(&self, pid: u32) -> Option<&ProcessFdTable>
pub fn get_mut(&mut self, pid: u32) -> Option<&mut ProcessFdTable>
pub fn has(&self, pid: u32) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn total_open_fds(&self) -> usize
pub fn pids(&self) -> Vec<u32>
pub fn remove(&mut self, pid: u32)
Trait Implementations§
Source§impl Clone for FdTableManager
impl Clone for FdTableManager
Source§fn clone(&self) -> FdTableManager
fn clone(&self) -> FdTableManager
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 FdTableManager
impl Debug for FdTableManager
Auto Trait Implementations§
impl Freeze for FdTableManager
impl RefUnwindSafe for FdTableManager
impl Send for FdTableManager
impl Sync for FdTableManager
impl Unpin for FdTableManager
impl UnsafeUnpin for FdTableManager
impl UnwindSafe for FdTableManager
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