Struct curl::Version

source ·
pub struct Version { /* private fields */ }
Expand description

Version information about libcurl and the capabilities that it supports.

Implementations§

source§

impl Version

source

pub fn num() -> &'static str

Returns the libcurl version that this library is currently linked against.

source

pub fn get() -> Version

Returns the libcurl version that this library is currently linked against.

source

pub fn version(&self) -> &str

Returns the human readable version string,

source

pub fn version_num(&self) -> u32

Returns a numeric representation of the version number

This is a 24 bit number made up of the major number, minor, and then patch number. For example 7.9.8 will return 0x070908.

source

pub fn vendored(&self) -> bool

Returns true if this was built with the vendored version of libcurl.

source

pub fn host(&self) -> &str

Returns a human readable string of the host libcurl is built for.

This is discovered as part of the build environment.

source

pub fn feature_ipv6(&self) -> bool

Returns whether libcurl supports IPv6

source

pub fn feature_ssl(&self) -> bool

Returns whether libcurl supports SSL

source

pub fn feature_libz(&self) -> bool

Returns whether libcurl supports HTTP deflate via libz

source

pub fn feature_ntlm(&self) -> bool

Returns whether libcurl supports HTTP NTLM

source

pub fn feature_gss_negotiate(&self) -> bool

Returns whether libcurl supports HTTP GSSNEGOTIATE

source

pub fn feature_debug(&self) -> bool

Returns whether libcurl was built with debug capabilities

source

pub fn feature_spnego(&self) -> bool

Returns whether libcurl was built with SPNEGO authentication

source

pub fn feature_largefile(&self) -> bool

Returns whether libcurl was built with large file support

source

pub fn feature_idn(&self) -> bool

Returns whether libcurl was built with support for IDNA, domain names with international letters.

source

pub fn feature_sspi(&self) -> bool

Returns whether libcurl was built with support for SSPI.

source

pub fn feature_async_dns(&self) -> bool

Returns whether libcurl was built with asynchronous name lookups.

source

pub fn feature_conv(&self) -> bool

Returns whether libcurl was built with support for character conversions.

source

pub fn feature_tlsauth_srp(&self) -> bool

Returns whether libcurl was built with support for TLS-SRP.

source

pub fn feature_ntlm_wb(&self) -> bool

Returns whether libcurl was built with support for NTLM delegation to winbind helper.

source

pub fn feature_unix_domain_socket(&self) -> bool

Returns whether libcurl was built with support for unix domain socket

source

pub fn feature_https_proxy(&self) -> bool

Returns whether libcurl was built with support for HTTPS proxy.

source

pub fn feature_http2(&self) -> bool

Returns whether libcurl was built with support for HTTP2.

source

pub fn feature_http3(&self) -> bool

Returns whether libcurl was built with support for HTTP3.

source

pub fn feature_brotli(&self) -> bool

Returns whether libcurl was built with support for Brotli.

source

pub fn feature_altsvc(&self) -> bool

Returns whether libcurl was built with support for Alt-Svc.

source

pub fn feature_zstd(&self) -> bool

Returns whether libcurl was built with support for zstd

source

pub fn feature_unicode(&self) -> bool

Returns whether libcurl was built with support for unicode

source

pub fn feature_hsts(&self) -> bool

Returns whether libcurl was built with support for hsts

source

pub fn feature_gsasl(&self) -> bool

Returns whether libcurl was built with support for gsasl

source

pub fn ssl_version(&self) -> Option<&str>

Returns the version of OpenSSL that is used, or None if there is no SSL support.

source

pub fn libz_version(&self) -> Option<&str>

Returns the version of libz that is used, or None if there is no libz support.

source

pub fn protocols(&self) -> Protocols<'_>

Returns an iterator over the list of protocols that this build of libcurl supports.

source

pub fn ares_version(&self) -> Option<&str>

If available, the human readable version of ares that libcurl is linked against.

source

pub fn ares_version_num(&self) -> Option<u32>

If available, the version of ares that libcurl is linked against.

source

pub fn libidn_version(&self) -> Option<&str>

If available, the version of libidn that libcurl is linked against.

source

pub fn iconv_version_num(&self) -> Option<u32>

If available, the version of iconv libcurl is linked against.

source

pub fn libssh_version(&self) -> Option<&str>

If available, the version of libssh that libcurl is linked against.

source

pub fn brotli_version_num(&self) -> Option<u32>

If available, the version of brotli libcurl is linked against.

source

pub fn brotli_version(&self) -> Option<&str>

If available, the version of brotli libcurl is linked against.

source

pub fn nghttp2_version_num(&self) -> Option<u32>

If available, the version of nghttp2 libcurl is linked against.

source

pub fn nghttp2_version(&self) -> Option<&str>

If available, the version of nghttp2 libcurl is linked against.

source

pub fn quic_version(&self) -> Option<&str>

If available, the version of quic libcurl is linked against.

source

pub fn cainfo(&self) -> Option<&str>

If available, the built-in default of CURLOPT_CAINFO.

source

pub fn capath(&self) -> Option<&str>

If available, the built-in default of CURLOPT_CAPATH.

source

pub fn zstd_ver_num(&self) -> Option<u32>

If avaiable, the numeric zstd version

Represented as (MAJOR << 24) | (MINOR << 12) | PATCH

source

pub fn zstd_version(&self) -> Option<&str>

If available, the human readable version of zstd

source

pub fn hyper_version(&self) -> Option<&str>

If available, the human readable version of hyper

source

pub fn gsasl_version(&self) -> Option<&str>

If available, the human readable version of hyper

Trait Implementations§

source§

impl Debug for Version

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Send for Version

source§

impl Sync for Version

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.