[go: up one dir, main page]

Struct git2::PushOptions[][src]

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

Options to control the behavior of a git push.

Implementations

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.

pub fn custom_headers(&mut self, custom_headers: &[&str]) -> &mut Self[src]

Set extra headers for this push operation.

Trait Implementations

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

fn default() -> Self[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

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

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

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

impl<'cb> Unpin for PushOptions<'cb>

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

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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

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

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.