pub struct PipeManager { /* private fields */ }Implementations§
Source§impl PipeManager
impl PipeManager
pub fn new() -> Self
pub fn create_pipe(&self) -> PipePair
pub fn poll( &self, description_id: u64, requested: PollEvents, ) -> PipeResult<PollEvents>
pub fn write( &self, description_id: u64, data: impl AsRef<[u8]>, ) -> PipeResult<usize>
pub fn write_blocking( &self, description_id: u64, data: impl AsRef<[u8]>, ) -> PipeResult<usize>
pub fn write_with_mode( &self, description_id: u64, data: impl AsRef<[u8]>, nonblocking: bool, ) -> PipeResult<usize>
pub fn read( &self, description_id: u64, length: usize, ) -> PipeResult<Option<Vec<u8>>>
pub fn read_with_timeout( &self, description_id: u64, length: usize, timeout: Option<Duration>, ) -> PipeResult<Option<Vec<u8>>>
pub fn close(&self, description_id: u64)
pub fn is_pipe(&self, description_id: u64) -> bool
pub fn pipe_id_for(&self, description_id: u64) -> Option<u64>
pub fn pipe_count(&self) -> usize
pub fn buffered_bytes(&self) -> usize
pub fn waiting_reader_count(&self, description_id: u64) -> PipeResult<usize>
pub fn pending_read_waiter_count(&self) -> usize
pub fn create_pipe_fds( &self, fd_table: &mut ProcessFdTable, ) -> FdResult<(u32, u32)>
Trait Implementations§
Source§impl Clone for PipeManager
impl Clone for PipeManager
Source§fn clone(&self) -> PipeManager
fn clone(&self) -> PipeManager
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 PipeManager
impl Debug for PipeManager
Auto Trait Implementations§
impl Freeze for PipeManager
impl RefUnwindSafe for PipeManager
impl Send for PipeManager
impl Sync for PipeManager
impl Unpin for PipeManager
impl UnsafeUnpin for PipeManager
impl UnwindSafe for PipeManager
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