[][src]Struct git2::transport::Transport

pub struct Transport { /* fields omitted */ }

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.

Methods

impl Transport
[src]

pub fn smart<S>(
    remote: &Remote,
    rpc: bool,
    subtransport: S
) -> Result<Transport, Error> where
    S: SmartSubtransport
[src]

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

impl Drop for Transport
[src]

Auto Trait Implementations

impl !Send for Transport

impl !Sync for Transport

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]