Enum body_image::BodyReader [] [src]

pub enum BodyReader<'a> {
    Contiguous(Cursor<&'a [u8]>),
    Scattered(GatheringReader<'a>),
    File(&'a File),
}

Provides a Read reference for a BodyImage in any state.

Variants

Cursor over a contiguous single RAM buffer, from Ram or MemMap. Also used for the empty case. Cursor::into_inner may be used for direct access to the memory byte slice.

GatheringReader providing Read over 2 or more scattered RAM buffers.

File reference providing Read, from BodyImage FsRead state.

Methods

impl<'a> BodyReader<'a>
[src]

[src]

Return the Read reference.

Trait Implementations

Auto Trait Implementations

impl<'a> Send for BodyReader<'a>

impl<'a> Sync for BodyReader<'a>