pub struct IOBuf { /* fields omitted */ }
Expand description
Represents an IO buffer (data handed to/from device).
Fill buffer with as many 0 as capacity allows.
Removes all buffer contents.
Copy data from src
into a given offset
of the IOBuf
.
Copy raw data of size len
into the buffer.
Copy data out of the IOBuf, starting at a given offset
into dst
.
Copy the data (starting at 0) to dst
slice.
Get a IOBuf contents as slice.
Get a IOBuf contents as mutable slice.
Formats the value using the given formatter. Read more
Address of the IOBuf in main memory.
Virtual address this buffer can be access by software.
implementation for the index operator [] on IOBuf
The returned type after indexing.
Performs the indexing (container[index]
) operation.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.