Struct git2::RemoteConnection [−][src]
pub struct RemoteConnection<'repo, 'connection, 'cb> { /* fields omitted */ }
Expand description
Holds callbacks for a connection to a Remote
. Disconnects when dropped
Implementations
impl<'repo, 'connection, 'cb> RemoteConnection<'repo, 'connection, 'cb>
[src]
impl<'repo, 'connection, 'cb> RemoteConnection<'repo, 'connection, 'cb>
[src]pub fn list(&self) -> Result<&[RemoteHead<'_>], Error>
[src]
pub 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.
pub fn default_branch(&self) -> Result<Buf, Error>
[src]
pub fn default_branch(&self) -> Result<Buf, Error>
[src]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.
Trait Implementations
Auto Trait Implementations
impl<'repo, 'connection, 'cb> !RefUnwindSafe for RemoteConnection<'repo, 'connection, 'cb>
impl<'repo, 'connection, 'cb> !Send for RemoteConnection<'repo, 'connection, 'cb>
impl<'repo, 'connection, 'cb> !Sync for RemoteConnection<'repo, 'connection, 'cb>
impl<'repo, 'connection, 'cb> Unpin for RemoteConnection<'repo, 'connection, 'cb> where
'repo: 'connection,
'repo: 'connection,