Struct iobuf::UniqueIobuf [] [src]

pub struct UniqueIobuf { /* 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]

Safely converts a UniqueIobuf into a ROIobuf.

Safely converts a UniqueIobuf into a RWIobuf.

Safely converts a UniqueIobuf into a AROIobuf.

Trait Implementations

impl Send for UniqueIobuf
[src]

impl Sync for UniqueIobuf
[src]

impl Drop for UniqueIobuf
[src]

A method called when the value goes out of scope. Read more

impl Debug for UniqueIobuf
[src]

Formats the value using the given formatter.