We need this to query the status of the input when decode fails.
Self::new_full(input, "/".into()).await
}
+ pub(crate) fn input(&self) -> &I {
+ &self.input
+ }
+
pub(crate) async fn new_full(input: I, path: PathBuf) -> io::Result<Self> {
let this = DecoderImpl {
input,
pub fn from_std(input: T) -> io::Result<Self> {
Decoder::new(StandardReader::new(input))
}
+
+ pub fn input(&mut self) -> &T {
+ self.inner.input().inner()
+ }
}
impl Decoder<StandardReader<std::fs::File>> {
pub fn new(inner: T) -> Self {
Self { inner }
}
+
+ pub fn inner(&self) -> &T {
+ &self.inner
+ }
}
impl<T: io::Read> SeqRead for StandardReader<T> {