[−][src]Struct git2::transport::Transport
A transport is a structure which knows how to transfer data to and from a remote.
This transport is a representation of the raw transport underneath it, which is similar to a trait object in Rust.
Implementations
impl Transport
[src]
pub fn smart<S>(
remote: &Remote<'_>,
rpc: bool,
subtransport: S
) -> Result<Transport, Error> where
S: SmartSubtransport,
[src]
remote: &Remote<'_>,
rpc: bool,
subtransport: S
) -> Result<Transport, Error> where
S: SmartSubtransport,
Creates a new transport which will use the "smart" transport protocol for transferring data.
A smart transport requires a subtransport over which data is actually communicated, but this subtransport largely just needs to be able to read() and write(). The subtransport provided will be used to make connections which can then be read/written from.
The rpc
argument is true
if the protocol is stateless, false
otherwise. For example http://
is stateless but git://
is not.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Transport
[src]
impl !Send for Transport
[src]
impl !Sync for Transport
[src]
impl Unpin for Transport
[src]
impl UnwindSafe for Transport
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,