Struct os::fs::pipe::Pipe

source · []
pub struct Pipe {
    readable: bool,
    writable: bool,
    buffer: Arc<Mutex<PipeRingBuffer>>,
}

Fields

readable: boolwritable: boolbuffer: Arc<Mutex<PipeRingBuffer>>

Implementations

Trait Implementations

Whether the file is inherently readable. Usually used as an indicator for authority for regular files. Read more

Whether the file is inherently writable. Usually used as an indicator for authority for regular files. Read more

Check whether the current file is hanged up and has nothing to read. In pipes, this functions checks whether the counterpart has closed the other end. Read more

Check whether the current file is ready to be read. Read more

Check whether the current file is ready to be written to Read more

Read a buffer from the file into the kernel buffer. Read more

Write to a buffer from the file into the kernel buffer. Read more

Control the device file. manipulates the underlying device parameters of special files. In particular, many operating characteristics of character special files (e.g., terminals) may be controlled with ioctl() requests. See the specific file type and its implementation for hint about available commands and arguments. Read more

Get the Stat for this file.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.