Crate html5ever_stream [] [src]



NodeStream uses a VecDeque to fully traverse the given RcDom and emit reference counted handles to each node as a futures::Stream. Pretty sure this won't leak memory since everything is either owned by a NodeStream struct or Rc'd. TODO(rossdylan) Actually verify that this doesn't leak


ParserFuture takes in any stream that emits an item that can be referenced as a [u8] It will collect the data from that stream into a html5ever parser. Currently you can't control the parser, but eventually you will. The future resolves to a RcDom structure.


ParserSink is a simple wrapper around a html5ever parser. It implements std::io::Write and allows you to stream data into it via the std::io primitives