pub struct Pipe { /* private fields */ }Implementations§
Source§impl Pipe
impl Pipe
pub const READ_FD: usize = 0usize
pub const WRITE_FD: usize = 1usize
pub fn new(close_on_exec: bool) -> Result<Self, SdbError>
pub fn get_read_fd(&self) -> i32
pub fn get_write_fd(&self) -> i32
pub fn release_read(&mut self) -> OwnedFd
pub fn release_write(&mut self) -> OwnedFd
pub fn close_read(&mut self)
pub fn close_write(&mut self)
pub fn read(&self) -> Result<Vec<u8>, SdbError>
pub fn write(&self, bytes: &[u8]) -> Result<(), SdbError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pipe
impl RefUnwindSafe for Pipe
impl Send for Pipe
impl Sync for Pipe
impl Unpin for Pipe
impl UnwindSafe for Pipe
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