Skip to main content

ReadSeekSend

Trait ReadSeekSend 

Source
pub trait ReadSeekSend:
    Read
    + Seek
    + Send
    + Sync { }
Expand description

A seekable, thread-safe byte source the reader can sit on: a File, an in-RAM Cursor, or a positioned sub-range of a .zip. Lets a caller open a VHD straight out of an archive (no temp-file extraction) via VhdReader::open_reader, while VhdReader::open keeps the file-path convenience.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Read + Seek + Send + Sync> ReadSeekSend for T