[][src]Struct git2::RemoteCallbacks

pub struct RemoteCallbacks<'a> { /* fields omitted */ }

A structure to contain the callbacks which are invoked when a repository is being updated or downloaded.

These callbacks are used to manage facilities such as authentication, transfer progress, etc.

Methods

impl<'a> RemoteCallbacks<'a>
[src]

Creates a new set of empty callbacks

The callback through which to fetch credentials if required.

The callback through which progress is monitored.

Textual progress from the remote.

Text sent over the progress side-band will be passed to this function (this is the 'counting objects' output).

Each time a reference is updated locally, the callback will be called with information about it.

If certificate verification fails, then this callback will be invoked to let the caller make the final decision of whether to allow the connection to proceed.

Set a callback to get invoked for each updated reference on a push.

The first argument to the callback is the name of the reference and the second is a status message sent by the server. If the status is Some then the push was rejected.

Trait Implementations

impl<'a> Default for RemoteCallbacks<'a>
[src]

Auto Trait Implementations

impl<'a> !Send for RemoteCallbacks<'a>

impl<'a> !Sync for RemoteCallbacks<'a>

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]

🔬 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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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