29 lines · 981 B · Rust
RawDownload
use crate::Remote; pub(crate) struct HandshakeWithRefs {    outcome: git_protocol::handshake::Outcome,    refs: Vec<git_protocol::handshake::Ref>,} /// A function that performs a given credential action, trying to obtain credentials for an operation that needs it.pub type AuthenticateFn<'a> = Box<dyn FnMut(git_credentials::helper::Action) -> git_credentials::protocol::Result + 'a>; /// A type to represent an ongoing connection to a remote host, typically with the connection already established.////// It can be used to perform a variety of operations with the remote without worrying about protocol details,/// much like a remote procedure call.pub struct Connection<'a, 'repo, T, P> {    pub(crate) remote: &'a Remote<'repo>,    pub(crate) authenticate: Option<AuthenticateFn<'a>>,    pub(crate) transport_options: Option<Box<dyn std::any::Any>>,    pub(crate) transport: T,    pub(crate) progress: P,} mod access; ///pub mod ref_map; ///pub mod fetch;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t