Struct git2::RemoteConnection
[−]
[src]
pub struct RemoteConnection<'repo, 'connection, 'cb> where
'repo: 'connection, { /* fields omitted */ }
Holds callbacks for a connection to a Remote
. Disconnects when dropped
Methods
impl<'repo, 'connection, 'cb> RemoteConnection<'repo, 'connection, 'cb>
[src]
fn connected(&mut self) -> bool
[src]
Check whether the remote is (still) connected
fn list(&self) -> Result<&[RemoteHead], Error>
[src]
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.