Struct lrs::pipe::Pipe

A kernel buffer.

Syntax

struct Pipe {
    /* private fields */
}

Static methods

NameDescription
new

Creates a new pipe.

Methods

ReceiverNameDescription
&selfcapacity

Reutrns the capacity of the pipe.

&selfcopy_to

Copies bytes from this pipe to another.

&selfgather_write

Writes from multiple buffers to the pipe.

&selflen

Returns the number of bytes currently buffered in the pipe.

&selfread

Reads from the pipe.

&selfread_from

Reads data from a file descriptor into the pipe.

&selfread_from_at

Reads data from a position in a file descriptor into the pipe.

&selfscatter_read

Reads from the pipe into multiple buffers.

&selfset_capacity

Sets the capacity of the pipe.

&selfwrite

Writes to the pipe.

&selfwrite_to

Writes data from this pipe to a file descriptor.

&selfwrite_to_at

Writes data from this pipe to a position in a file descriptor.

Trait implementations

NameDescription
Drop

Objects with a destructor.

FDContainer

Objects that are file descriptor wrappers.

Read

Objects that wrap a byte-stream for reading.

UndefState

Types that are not valid when they contain certain bit patterns.

Write

Objects that wrap a byte-stream for writing.