pub trait ConnectionStream {
type Read: Read;
type Write: Write + SignalEof;
type Error: Error + Send + Sync + 'static;
// Required method
fn open(
&mut self,
) -> Result<(&mut Self::Read, &mut Self::Write), Self::Error>;
}
Expand description
Open a reader and writer stream to pass to the ls-refs and fetch processes for communicating during their respective protocols.