Struct git2::RemoteConnection
source · pub struct RemoteConnection<'repo, 'connection, 'cb> { /* private fields */ }
Expand description
Holds callbacks for a connection to a Remote
. Disconnects when dropped
Implementations§
source§impl<'repo, 'connection, 'cb> RemoteConnection<'repo, 'connection, 'cb>
impl<'repo, 'connection, 'cb> RemoteConnection<'repo, 'connection, 'cb>
sourcepub fn list(&self) -> Result<&[RemoteHead<'_>], Error>
pub fn list(&self) -> Result<&[RemoteHead<'_>], Error>
Get the remote repository’s reference advertisement list.
This list is available as soon as the connection to the remote is initiated and it remains available after disconnecting.
sourcepub fn default_branch(&self) -> Result<Buf, Error>
pub fn default_branch(&self) -> Result<Buf, Error>
Get the remote’s default branch.
This default branch is available as soon as the connection to the remote is initiated and it remains available after disconnecting.