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
sourceimpl<'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.
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,
impl<'repo, 'connection, 'cb> !UnwindSafe for RemoteConnection<'repo, 'connection, 'cb>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more