pub struct SystemPipeReader { /* private fields */ }Expand description
Cross‑platform system pipe reader (read end)
Implementations§
Source§impl SystemPipeReader
impl SystemPipeReader
Sourcepub fn into_raw_fd(self) -> RawFd
pub fn into_raw_fd(self) -> RawFd
Consume and return the raw file descriptor (Unix). Caller becomes responsible for closing it.
Sourcepub unsafe fn from_raw_fd(fd: RawFd) -> Self
pub unsafe fn from_raw_fd(fd: RawFd) -> Self
Construct from a raw file descriptor (Unix).
§Safety
Caller guarantees that fd is a valid read end of a pipe file descriptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemPipeReader
impl RefUnwindSafe for SystemPipeReader
impl Send for SystemPipeReader
impl Sync for SystemPipeReader
impl Unpin for SystemPipeReader
impl UnsafeUnpin for SystemPipeReader
impl UnwindSafe for SystemPipeReader
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