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 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_http2(&self) -> bool
pub fn feature_http2(&self) -> bool
Returns whether libcurl was built with support for HTTP2.
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 iconv 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.