pub struct TransportCapabilities {Show 18 fields
pub http_fetch: bool,
pub http_push: bool,
pub http_protocol_v2_discovery: bool,
pub http_protocol_v2_fetch: bool,
pub shallow_fetch: bool,
pub ssh_fetch: bool,
pub ssh_push: bool,
pub ssh_clone: bool,
pub git_fetch: bool,
pub git_push: bool,
pub git_clone: bool,
pub bundle_fetch: bool,
pub local_fetch: bool,
pub local_push: bool,
pub credential_helper: bool,
pub thin_pack_push: bool,
pub sha256_http: bool,
pub sha256_ssh: bool,
}Expand description
Transport and remote-operation capabilities exposed by sley-remote.
Fields§
§http_fetch: boolfetch / clone over HTTP(S) smart transport.
http_push: boolpush over HTTP(S) receive-pack.
http_protocol_v2_discovery: boolProtocol v2 service discovery + ls-refs ref advertisements.
http_protocol_v2_fetch: boolProtocol v2 fetch command (pack negotiation over v2 RPC).
shallow_fetch: boolShallow clone/fetch via --depth / deepen.
ssh_fetch: boolfetch / push / ls-remote over SSH upload-pack/receive-pack.
ssh_push: bool§ssh_clone: boolclone over SSH (bare mirror / checkout destination).
git_fetch: boolfetch / push / clone / ls-remote over native git://.
git_push: bool§git_clone: bool§bundle_fetch: boolfetch from .bundle files (git bundle protocol).
local_fetch: boolIn-process file:// upload-pack / receive-pack.
local_push: bool§credential_helper: boolCredential-helper subprocess provider ([CredentialHelperProvider]).
thin_pack_push: boolThin-pack generation on push (delta bases omitted from pack body).
sha256_http: boolSHA-256 object format over smart HTTP (negotiated via object-format).
sha256_ssh: boolSHA-256 object format over SSH.
Implementations§
Source§impl TransportCapabilities
impl TransportCapabilities
Sourcepub fn supports_native_push(&self, transport: RemoteTransportKind) -> bool
pub fn supports_native_push(&self, transport: RemoteTransportKind) -> bool
Whether native push is available for the given transport class.
Sourcepub fn supports_shallow(&self, transport: RemoteTransportKind) -> bool
pub fn supports_shallow(&self, transport: RemoteTransportKind) -> bool
Whether shallow fetch/clone is available for the given transport class.
Trait Implementations§
Source§impl Clone for TransportCapabilities
impl Clone for TransportCapabilities
Source§fn clone(&self) -> TransportCapabilities
fn clone(&self) -> TransportCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransportCapabilities
Source§impl Debug for TransportCapabilities
impl Debug for TransportCapabilities
impl Eq for TransportCapabilities
Source§impl PartialEq for TransportCapabilities
impl PartialEq for TransportCapabilities
Source§fn eq(&self, other: &TransportCapabilities) -> bool
fn eq(&self, other: &TransportCapabilities) -> bool
self and other values to be equal, and is used by ==.