xmlstream: add access to inner stream
This commit is contained in:
parent
2931df22db
commit
2c944ebbf8
2 changed files with 11 additions and 0 deletions
|
|
@ -161,6 +161,13 @@ pin_project_lite::pin_project! {
|
|||
}
|
||||
}
|
||||
|
||||
impl<Io, T: FromXml> XmlStream<Io, T> {
|
||||
/// Obtain a reference to the `Io` stream.
|
||||
pub fn get_stream(&self) -> &Io {
|
||||
self.inner.get_stream()
|
||||
}
|
||||
}
|
||||
|
||||
impl<Io: AsyncBufRead, T: FromXml + AsXml> XmlStream<Io, T> {
|
||||
fn wrap(inner: RawXmlStream<Io>) -> Self {
|
||||
Self {
|
||||
|
|
|
|||
Loading…
Reference in a new issue