pub struct Version { /* private fields */ }
Expand description
Version information about libcurl and the capabilities that it supports.
Implementations§
Source§impl Version
impl Version
Sourcepub fn num() -> &'static str
pub fn num() -> &'static str
Returns the libcurl version that this library is currently linked against.
Sourcepub fn get() -> Version
pub fn get() -> Version
Returns the libcurl version that this library is currently linked against.
Sourcepub fn version_num(&self) -> u32
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.
Sourcepub fn vendored(&self) -> bool
pub fn vendored(&self) -> bool
Returns true if this was built with the vendored version of libcurl.
Sourcepub fn host(&self) -> &str
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.
Sourcepub fn feature_ipv6(&self) -> bool
pub fn feature_ipv6(&self) -> bool
Returns whether libcurl supports IPv6
Sourcepub fn feature_ssl(&self) -> bool
pub fn feature_ssl(&self) -> bool
Returns whether libcurl supports SSL
Sourcepub fn feature_libz(&self) -> bool
pub fn feature_libz(&self) -> bool
Returns whether libcurl supports HTTP deflate via libz
Sourcepub fn feature_ntlm(&self) -> bool
pub fn feature_ntlm(&self) -> bool
Returns whether libcurl supports HTTP NTLM
Sourcepub fn feature_gss_negotiate(&self) -> bool
pub fn feature_gss_negotiate(&self) -> bool
Returns whether libcurl supports HTTP GSSNEGOTIATE
Sourcepub fn feature_debug(&self) -> bool
pub fn feature_debug(&self) -> bool
Returns whether libcurl was built with debug capabilities
Sourcepub fn feature_spnego(&self) -> bool
pub fn feature_spnego(&self) -> bool
Returns whether libcurl was built with SPNEGO authentication
Sourcepub fn feature_largefile(&self) -> bool
pub fn feature_largefile(&self) -> bool
Returns whether libcurl was built with large file support
Sourcepub fn feature_idn(&self) -> bool
pub fn feature_idn(&self) -> bool
Returns whether libcurl was built with support for IDNA, domain names with international letters.
Sourcepub fn feature_sspi(&self) -> bool
pub fn feature_sspi(&self) -> bool
Returns whether libcurl was built with support for SSPI.
Sourcepub fn feature_async_dns(&self) -> bool
pub fn feature_async_dns(&self) -> bool
Returns whether libcurl was built with asynchronous name lookups.
Sourcepub fn feature_conv(&self) -> bool
pub fn feature_conv(&self) -> bool
Returns whether libcurl was built with support for character conversions.
Sourcepub fn feature_tlsauth_srp(&self) -> bool
pub fn feature_tlsauth_srp(&self) -> bool
Returns whether libcurl was built with support for TLS-SRP.
Sourcepub fn feature_ntlm_wb(&self) -> bool
pub fn feature_ntlm_wb(&self) -> bool
Returns whether libcurl was built with support for NTLM delegation to winbind helper.
Sourcepub fn feature_unix_domain_socket(&self) -> bool
pub fn feature_unix_domain_socket(&self) -> bool
Returns whether libcurl was built with support for unix domain socket
Sourcepub fn feature_https_proxy(&self) -> bool
pub fn feature_https_proxy(&self) -> bool
Returns whether libcurl was built with support for HTTPS proxy.
Sourcepub fn feature_http2(&self) -> bool
pub fn feature_http2(&self) -> bool
Returns whether libcurl was built with support for HTTP2.
Sourcepub fn feature_http3(&self) -> bool
pub fn feature_http3(&self) -> bool
Returns whether libcurl was built with support for HTTP3.
Sourcepub fn feature_brotli(&self) -> bool
pub fn feature_brotli(&self) -> bool
Returns whether libcurl was built with support for Brotli.
Sourcepub fn feature_altsvc(&self) -> bool
pub fn feature_altsvc(&self) -> bool
Returns whether libcurl was built with support for Alt-Svc.
Sourcepub fn feature_zstd(&self) -> bool
pub fn feature_zstd(&self) -> bool
Returns whether libcurl was built with support for zstd
Sourcepub fn feature_unicode(&self) -> bool
pub fn feature_unicode(&self) -> bool
Returns whether libcurl was built with support for unicode
Sourcepub fn feature_hsts(&self) -> bool
pub fn feature_hsts(&self) -> bool
Returns whether libcurl was built with support for hsts
Sourcepub fn feature_gsasl(&self) -> bool
pub fn feature_gsasl(&self) -> bool
Returns whether libcurl was built with support for gsasl
Sourcepub fn ssl_version(&self) -> Option<&str>
pub fn ssl_version(&self) -> Option<&str>
Returns the version of OpenSSL that is used, or None if there is no SSL support.
Sourcepub fn libz_version(&self) -> Option<&str>
pub fn libz_version(&self) -> Option<&str>
Returns the version of libz that is used, or None if there is no libz support.
Sourcepub fn protocols(&self) -> Protocols<'_> ⓘ
pub fn protocols(&self) -> Protocols<'_> ⓘ
Returns an iterator over the list of protocols that this build of libcurl supports.
Sourcepub fn ares_version(&self) -> Option<&str>
pub fn ares_version(&self) -> Option<&str>
If available, the human readable version of ares that libcurl is linked against.
Sourcepub fn ares_version_num(&self) -> Option<u32>
pub fn ares_version_num(&self) -> Option<u32>
If available, the version of ares that libcurl is linked against.
Sourcepub fn libidn_version(&self) -> Option<&str>
pub fn libidn_version(&self) -> Option<&str>
If available, the version of libidn that libcurl is linked against.
Sourcepub fn iconv_version_num(&self) -> Option<u32>
pub fn iconv_version_num(&self) -> Option<u32>
If available, the version of iconv libcurl is linked against.
Sourcepub fn libssh_version(&self) -> Option<&str>
pub fn libssh_version(&self) -> Option<&str>
If available, the version of libssh that libcurl is linked against.
Sourcepub fn brotli_version_num(&self) -> Option<u32>
pub fn brotli_version_num(&self) -> Option<u32>
If available, the version of brotli libcurl is linked against.
Sourcepub fn brotli_version(&self) -> Option<&str>
pub fn brotli_version(&self) -> Option<&str>
If available, the version of brotli libcurl is linked against.
Sourcepub fn nghttp2_version_num(&self) -> Option<u32>
pub fn nghttp2_version_num(&self) -> Option<u32>
If available, the version of nghttp2 libcurl is linked against.
Sourcepub fn nghttp2_version(&self) -> Option<&str>
pub fn nghttp2_version(&self) -> Option<&str>
If available, the version of nghttp2 libcurl is linked against.
Sourcepub fn quic_version(&self) -> Option<&str>
pub fn quic_version(&self) -> Option<&str>
If available, the version of quic libcurl is linked against.
Sourcepub fn zstd_ver_num(&self) -> Option<u32>
pub fn zstd_ver_num(&self) -> Option<u32>
If avaiable, the numeric zstd version
Represented as (MAJOR << 24) | (MINOR << 12) | PATCH
Sourcepub fn zstd_version(&self) -> Option<&str>
pub fn zstd_version(&self) -> Option<&str>
If available, the human readable version of zstd
Sourcepub fn hyper_version(&self) -> Option<&str>
pub fn hyper_version(&self) -> Option<&str>
If available, the human readable version of hyper
Sourcepub fn gsasl_version(&self) -> Option<&str>
pub fn gsasl_version(&self) -> Option<&str>
If available, the human readable version of hyper