[][src]Struct git2::RemoteConnection

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]

pub fn connected(&mut self) -> bool
[src]

Check whether the remote is (still) connected

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.

Trait Implementations

impl<'repo, 'connection, 'cb> Drop for RemoteConnection<'repo, 'connection, 'cb>
[src]

Auto Trait Implementations

impl<'repo, 'connection, 'cb> !Send for RemoteConnection<'repo, 'connection, 'cb>

impl<'repo, 'connection, 'cb> !Sync for RemoteConnection<'repo, 'connection, 'cb>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]