pub struct AnonPipe(FileDesc);
Tuple Fields§
§0: FileDesc
Implementations§
Source§impl AnonPipe
impl AnonPipe
pub fn try_clone(&self) -> Result<Self>
pub fn read(&self, buf: &mut [u8]) -> Result<usize>
pub fn read_buf(&self, buf: BorrowedCursor<'_>) -> Result<()>
pub fn read_vectored(&self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
pub fn is_read_vectored(&self) -> bool
pub fn read_to_end(&self, buf: &mut Vec<u8>) -> Result<usize>
pub fn write(&self, buf: &[u8]) -> Result<usize>
pub fn write_vectored(&self, bufs: &[IoSlice<'_>]) -> Result<usize>
pub fn is_write_vectored(&self) -> bool
pub fn as_file_desc(&self) -> &FileDesc ⓘ
Trait Implementations§
Source§impl AsFd for AnonPipe
impl AsFd for AnonPipe
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Source§impl FromInner<AnonPipe> for ChildStderr
impl FromInner<AnonPipe> for ChildStderr
fn from_inner(pipe: AnonPipe) -> ChildStderr ⓘ
Source§impl FromInner<AnonPipe> for ChildStdin
impl FromInner<AnonPipe> for ChildStdin
fn from_inner(pipe: AnonPipe) -> ChildStdin ⓘ
Source§impl FromInner<AnonPipe> for ChildStdout
impl FromInner<AnonPipe> for ChildStdout
fn from_inner(pipe: AnonPipe) -> ChildStdout ⓘ
Source§impl FromRawFd for AnonPipe
impl FromRawFd for AnonPipe
Source§unsafe fn from_raw_fd(raw_fd: RawFd) -> Self
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self
Constructs a new instance of
Self
from the given raw file
descriptor. Read moreSource§impl IntoInner<AnonPipe> for ChildStderr
impl IntoInner<AnonPipe> for ChildStderr
fn into_inner(self) -> AnonPipe
Source§impl IntoInner<AnonPipe> for ChildStdin
impl IntoInner<AnonPipe> for ChildStdin
fn into_inner(self) -> AnonPipe
Source§impl IntoInner<AnonPipe> for ChildStdout
impl IntoInner<AnonPipe> for ChildStdout
fn into_inner(self) -> AnonPipe
Auto Trait Implementations§
impl Freeze for AnonPipe
impl RefUnwindSafe for AnonPipe
impl Send for AnonPipe
impl Sync for AnonPipe
impl Unpin for AnonPipe
impl UnwindSafe for AnonPipe
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> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more