[][src]Struct body_image_futio::UniBodyBuf

pub struct UniBodyBuf { /* fields omitted */ }

Provides zero-copy read access to both Bytes and memory mapped regions (MemMapBuf). Implements bytes::Buf (mmap feature only).

Trait Implementations

impl AsRef<[u8]> for UniBodyBuf[src]

impl Buf for UniBodyBuf[src]

impl Debug for UniBodyBuf[src]

impl Deref for UniBodyBuf[src]

type Target = [u8]

The resulting type after dereferencing.

impl From<Bytes> for UniBodyBuf[src]

impl InputBuf for UniBodyBuf[src]

impl Into<Bytes> for UniBodyBuf[src]

fn into(self) -> Bytes[src]

Convert from UniBodyBuf to Bytes. This is a costly memory copy only in the case of MemMap (mmap feature) to Bytes. This case is logged and should be rare using normal configuration and high-level API. For example, it could occur when a Stream of UniBodyBuf over an MemMap BodyImage is forwarded to a Sink configured with a larger Tunables::max_body_ram. With the same maximums used to produce the original image and output sink, this should not occur, as no conversion is required when writing to FsWrite state.

impl OutputBuf for UniBodyBuf[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<B> BufExt for B where
    B: Buf + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,