Struct git2::ProxyOptions [−][src]
pub struct ProxyOptions<'a> { /* fields omitted */ }
Options which can be specified to various fetch operations.
Methods
impl<'a> ProxyOptions<'a>
[src]
impl<'a> ProxyOptions<'a>
pub fn new() -> ProxyOptions<'a>
[src]
pub fn new() -> ProxyOptions<'a>
Creates a new set of proxy options ready to be configured.
pub fn auto(&mut self) -> &mut Self
[src]
pub fn auto(&mut self) -> &mut Self
Try to auto-detect the proxy from the git configuration.
Note that this will override url
specified before.
pub fn url(&mut self, url: &str) -> &mut Self
[src]
pub fn url(&mut self, url: &str) -> &mut Self
Specify the exact URL of the proxy to use.
Note that this will override auto
specified before.
Trait Implementations
impl<'a> Default for ProxyOptions<'a>
[src]
impl<'a> Default for ProxyOptions<'a>
fn default() -> ProxyOptions<'a>
[src]
fn default() -> ProxyOptions<'a>
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl<'a> Send for ProxyOptions<'a>
impl<'a> Send for ProxyOptions<'a>
impl<'a> Sync for ProxyOptions<'a>
impl<'a> Sync for ProxyOptions<'a>