[][src]Struct git2::PushOptions

pub struct PushOptions<'cb> { /* fields omitted */ }

Options to control the behavior of a git push.

Methods

impl<'cb> PushOptions<'cb>
[src]

pub fn new() -> PushOptions<'cb>
[src]

Creates a new blank set of push options

pub fn remote_callbacks(&mut self, cbs: RemoteCallbacks<'cb>) -> &mut Self
[src]

Set the callbacks to use for the fetch operation.

pub fn proxy_options(&mut self, opts: ProxyOptions<'cb>) -> &mut Self
[src]

Set the proxy options to use for the fetch operation.

pub fn packbuilder_parallelism(&mut self, parallel: u32) -> &mut Self
[src]

If the transport being used to push to the remote requires the creation of a pack file, this controls the number of worker threads used by the packbuilder when creating that pack file to be sent to the remote.

if set to 0 the packbuilder will auto-detect the number of threads to create, and the default value is 1.

Trait Implementations

impl<'cb> Default for PushOptions<'cb>
[src]

Auto Trait Implementations

impl<'cb> !Send for PushOptions<'cb>

impl<'cb> !Sync for PushOptions<'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]