[][src]Trait tectonic_io_base::InputFeatures

pub trait InputFeatures: Read {
    pub fn get_size(&mut self) -> Result<usize>;
pub fn try_seek(&mut self, pos: SeekFrom) -> Result<u64>; pub fn get_unix_mtime(&mut self) -> Result<Option<i64>> { ... } }

An extension to the basic Read trait supporting additional features needed for Tectonic's I/O system.

Required methods

pub fn get_size(&mut self) -> Result<usize>[src]

Get the size of the stream. Return TectonicIoError::NotSizeable if the operation is not well-defined for this stream.

pub fn try_seek(&mut self, pos: SeekFrom) -> Result<u64>[src]

Try to seek within the stream. Return TectonicIoError::NotSeekable if the operation is not possible for this stream.

Loading content...

Provided methods

pub fn get_unix_mtime(&mut self) -> Result<Option<i64>>[src]

Get the modification time of this file as a Unix time. If that quantity is not meaningfully defined for this input, return Ok(None). This is what the default implementation does.

Loading content...

Implementations on Foreign Types

impl InputFeatures for File[src]

impl InputFeatures for BufReader<File>[src]

impl<R: Read> InputFeatures for GzDecoder<R>[src]

impl InputFeatures for Cursor<SharedByteBuffer>[src]

impl InputFeatures for Cursor<Vec<u8>>[src]

Loading content...

Implementors

impl InputFeatures for InputHandle[src]

Loading content...