Struct git2::FetchOptions [−][src]
Options which can be specified to various fetch operations.
Implementations
impl<'cb> FetchOptions<'cb>
[src]
pub fn new() -> FetchOptions<'cb>
[src]
Creates a new blank set of fetch 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 prune(&mut self, prune: FetchPrune) -> &mut Self
[src]
Set whether to perform a prune after the fetch.
pub fn update_fetchhead(&mut self, update: bool) -> &mut Self
[src]
Set whether to write the results to FETCH_HEAD.
Defaults to true
.
pub fn download_tags(&mut self, opt: AutotagOption) -> &mut Self
[src]
Set how to behave regarding tags on the remote, such as auto-downloading tags for objects we’re downloading or downloading all of them.
The default is to auto-follow tags.
Trait Implementations
impl<'cb> Default for FetchOptions<'cb>
[src]
Auto Trait Implementations
impl<'cb> !RefUnwindSafe for FetchOptions<'cb>
impl<'cb> !Send for FetchOptions<'cb>
impl<'cb> !Sync for FetchOptions<'cb>
impl<'cb> Unpin for FetchOptions<'cb>
impl<'cb> !UnwindSafe for FetchOptions<'cb>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,