Trait git_transport::client::TransportV2Ext
source · pub trait TransportV2Ext {
// Required method
fn invoke<'a>(
&mut self,
command: &str,
capabilities: impl Iterator<Item = (&'a str, Option<impl AsRef<str>>)> + 'a,
arguments: Option<impl Iterator<Item = BString>>
) -> Result<Box<dyn ExtendedBufRead + Unpin + '_>, Error>;
}
Available on crate feature
blocking-client
only.Expand description
An extension trait to add more methods to everything implementing Transport
.
Required Methods§
sourcefn invoke<'a>(
&mut self,
command: &str,
capabilities: impl Iterator<Item = (&'a str, Option<impl AsRef<str>>)> + 'a,
arguments: Option<impl Iterator<Item = BString>>
) -> Result<Box<dyn ExtendedBufRead + Unpin + '_>, Error>
fn invoke<'a>( &mut self, command: &str, capabilities: impl Iterator<Item = (&'a str, Option<impl AsRef<str>>)> + 'a, arguments: Option<impl Iterator<Item = BString>> ) -> Result<Box<dyn ExtendedBufRead + Unpin + '_>, Error>
Invoke a protocol V2 style command
with given capabilities
and optional command specific arguments
.
The capabilities
were communicated during the handshake.
Note: panics if handshake wasn’t performed beforehand.