pub struct PipeRingBuffer {
    arr: [u8; 32],
    head: usize,
    tail: usize,
    status: RingBufferStatus,
    write_end: Option<Weak<Pipe>>,
}
Expand description

The underlying ring buffer of a pipe

Fields

arr: [u8; 32]head: usizetail: usizestatus: RingBufferStatuswrite_end: Option<Weak<Pipe>>

Implementations

Set the write end bound to this buffer

Write into the buffer

Read from the buffer

Get the length of remaining data in the buffer

Get the length of remaining space in the buffer

Check if all write ends bounded to this buffer are closed

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.