#[repr(transparent)]pub struct PipeState(pub c_uchar);Expand description
The state of a pipe
PipeStateOpen: Both pipe sides are in place, meaning data that is sent down the pipe might be read by the peer, and new data sent by the peer might arrive.PipeStateBroken: The other side of the pipe has been freed, meaning data that is written will never reach its destination, and no new data will appear in the buffer.
A broken pipe can never become open again, because there’s no way to connect a side of a pipe to another side of a pipe.
Tuple Fields§
§0: c_ucharTrait Implementations§
impl Copy for PipeState
impl Eq for PipeState
impl StructuralPartialEq for PipeState
Auto Trait Implementations§
impl Freeze for PipeState
impl RefUnwindSafe for PipeState
impl Send for PipeState
impl Sync for PipeState
impl Unpin for PipeState
impl UnwindSafe for PipeState
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