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.
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.
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static