pipe_state

Function pipe_state 

Source
pub unsafe extern "C" fn pipe_state(pipe: *mut PipeSide) -> PipeState
Expand description

Gets the state of a pipe.

When the state is PipeStateOpen, both sides are active and may send or receive data. When the state is PipeStateBroken, only one side is active (the one that this method has been called on). If you find yourself in that state, the data that you send will never be heard by anyone, and the data you receive are leftovers in the buffer.

§Arguments

  • [in] - pipe Pipe side to query

§Returns

State of the pipe