Trait git_transport::client::ReadlineBufRead
source · pub trait ReadlineBufRead: BufRead {
// Required method
fn readline(&mut self) -> Option<Result<Result<PacketLineRef<'_>, Error>>>;
}
Available on crate feature
blocking-client
only.Expand description
This trait exists to get a version of a git_packetline::Provider
without type parameters,
but leave support for reading lines directly without forcing them through String
.
For the sake of usability, it also implements std::io::BufRead
making it trivial to
read pack files while keeping open the option to read individual lines with low overhead.