pub struct RemoteConnection<'repo, 'connection, 'cb> { /* private fields */ }
Expand description

Holds callbacks for a connection to a Remote. Disconnects when dropped

Implementations

Check whether the remote is (still) connected

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.

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.

access remote bound to this connection

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.