Struct iobuf::UniqueIobuf
[−]
[src]
pub struct UniqueIobuf { // some fields omitted }
A unique, immutable Iobuf.
If the refcount on an Iobuf is 1
, it can be made unique with .unique()
.
This will allow sending across channels, and later conversion back to a
normal refcounted (atomically or non) Iobuf with zero overhead.
Methods
impl UniqueIobuf
[src]
fn read_only(self) -> ROIobuf<'static>
Safely converts a UniqueIobuf
into a ROIobuf
.
fn read_write(self) -> RWIobuf<'static>
Safely converts a UniqueIobuf
into a RWIobuf
.
fn atomic_read_only(self) -> AROIobuf
Safely converts a UniqueIobuf
into a AROIobuf
.