1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use flate2::read::GzDecoder;
use std::io::{Read, SeekFrom};
use tectonic_errors::Result;
use super::{InputFeatures, TectonicIoError};
impl<R: Read> InputFeatures for GzDecoder<R> {
fn get_size(&mut self) -> Result<usize> {
Err(TectonicIoError::NotSizeable.into())
}
fn get_unix_mtime(&mut self) -> Result<Option<i64>> {
Ok(None)
}
fn try_seek(&mut self, _: SeekFrom) -> Result<u64> {
Err(TectonicIoError::NotSeekable.into())
}
}