pub struct PipeWriter { /* private fields */ }Expand description
The write end of a kernel pipe.
Implementations§
Source§impl PipeWriter
impl PipeWriter
Sourcepub fn write(&self, data: &[u8]) -> Result<usize, KernelError>
pub fn write(&self, data: &[u8]) -> Result<usize, KernelError>
Write data to the pipe.
Returns the number of bytes written. Returns an error if the read end has been closed (broken pipe).
Sourcepub fn write_all(&self, data: &[u8]) -> Result<(), KernelError>
pub fn write_all(&self, data: &[u8]) -> Result<(), KernelError>
Write all data, blocking until complete.