193 lines
70 KiB
HTML
193 lines
70 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An error that occurs during certificate validation or name validation."><title>Error in webpki - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="webpki" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Error</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../webpki/index.html">webpki</a><span class="version">0.103.9</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Error</a></h2><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.BadDer" title="BadDer">BadDer</a></li><li><a href="#variant.BadDerTime" title="BadDerTime">BadDerTime</a></li><li><a href="#variant.CaUsedAsEndEntity" title="CaUsedAsEndEntity">CaUsedAsEndEntity</a></li><li><a href="#variant.CertExpired" title="CertExpired">CertExpired</a></li><li><a href="#variant.CertNotValidForName" title="CertNotValidForName">CertNotValidForName</a></li><li><a href="#variant.CertNotValidYet" title="CertNotValidYet">CertNotValidYet</a></li><li><a href="#variant.CertRevoked" title="CertRevoked">CertRevoked</a></li><li><a href="#variant.CrlExpired" title="CrlExpired">CrlExpired</a></li><li><a href="#variant.EmptyEkuExtension" title="EmptyEkuExtension">EmptyEkuExtension</a></li><li><a href="#variant.EndEntityUsedAsCa" title="EndEntityUsedAsCa">EndEntityUsedAsCa</a></li><li><a href="#variant.ExtensionValueInvalid" title="ExtensionValueInvalid">ExtensionValueInvalid</a></li><li><a href="#variant.InvalidCertValidity" title="InvalidCertValidity">InvalidCertValidity</a></li><li><a href="#variant.InvalidCrlNumber" title="InvalidCrlNumber">InvalidCrlNumber</a></li><li><a href="#variant.InvalidCrlSignatureForPublicKey" title="InvalidCrlSignatureForPublicKey">InvalidCrlSignatureForPublicKey</a></li><li><a href="#variant.InvalidNetworkMaskConstraint" title="InvalidNetworkMaskConstraint">InvalidNetworkMaskConstraint</a></li><li><a href="#variant.InvalidSerialNumber" title="InvalidSerialNumber">InvalidSerialNumber</a></li><li><a href="#variant.InvalidSignatureForPublicKey" title="InvalidSignatureForPublicKey">InvalidSignatureForPublicKey</a></li><li><a href="#variant.IssuerNotCrlSigner" title="IssuerNotCrlSigner">IssuerNotCrlSigner</a></li><li><a href="#variant.MalformedDnsIdentifier" title="MalformedDnsIdentifier">MalformedDnsIdentifier</a></li><li><a href="#variant.MalformedExtensions" title="MalformedExtensions">MalformedExtensions</a></li><li><a href="#variant.MalformedNameConstraint" title="MalformedNameConstraint">MalformedNameConstraint</a></li><li><a href="#variant.MaximumNameConstraintComparisonsExceeded" title="MaximumNameConstraintComparisonsExceeded">MaximumNameConstraintComparisonsExceeded</a></li><li><a href="#variant.MaximumPathBuildCallsExceeded" title="MaximumPathBuildCallsExceeded">MaximumPathBuildCallsExceeded</a></li><li><a href="#variant.MaximumPathDepthExceeded" title="MaximumPathDepthExceeded">MaximumPathDepthExceeded</a></li><li><a href="#variant.MaximumSignatureChecksExceeded" title="MaximumSignatureChecksExceeded">MaximumSignatureChecksExceeded</a></li><li><a href="#variant.NameConstraintViolation" title="NameConstraintViolation">NameConstraintViolation</a></li><li><a href="#variant.PathLenConstraintViolated" title="PathLenConstraintViolated">PathLenConstraintViolated</a></li><li><a href="#variant.RequiredEkuNotFound" title="RequiredEkuNotFound">RequiredEkuNotFound</a></li><li><a href="#variant.RequiredEkuNotFoundContext" title="RequiredEkuNotFoundContext">RequiredEkuNotFoundContext</a></li><li><a href="#variant.SignatureAlgorithmMismatch" title="SignatureAlgorithmMismatch">SignatureAlgorithmMismatch</a></li><li><a href="#variant.TrailingData" title="TrailingData">TrailingData</a></li><li><a href="#variant.UnknownIssuer" title="UnknownIssuer">UnknownIssuer</a></li><li><a href="#variant.UnknownRevocationStatus" title="UnknownRevocationStatus">UnknownRevocationStatus</a></li><li><a href="#variant.UnsupportedCertVersion" title="UnsupportedCertVersion">UnsupportedCertVersion</a></li><li><a href="#variant.UnsupportedCriticalExtension" title="UnsupportedCriticalExtension">UnsupportedCriticalExtension</a></li><li><a href="#variant.UnsupportedCrlIssuingDistributionPoint" title="UnsupportedCrlIssuingDistributionPoint">UnsupportedCrlIssuingDistributionPoint</a></li><li><a href="#variant.UnsupportedCrlSignatureAlgorithm" title="UnsupportedCrlSignatureAlgorithm">UnsupportedCrlSignatureAlgorithm</a></li><li><a href="#variant.UnsupportedCrlSignatureAlgorithmContext" title="UnsupportedCrlSignatureAlgorithmContext">UnsupportedCrlSignatureAlgorithmContext</a></li><li><a href="#variant.UnsupportedCrlSignatureAlgorithmForPublicKey" title="UnsupportedCrlSignatureAlgorithmForPublicKey">UnsupportedCrlSignatureAlgorithmForPublicKey</a></li><li><a href="#variant.UnsupportedCrlSignatureAlgorithmForPublicKeyContext" title="UnsupportedCrlSignatureAlgorithmForPublicKeyContext">UnsupportedCrlSignatureAlgorithmForPublicKeyContext</a></li><li><a href="#variant.UnsupportedCrlVersion" title="UnsupportedCrlVersion">UnsupportedCrlVersion</a></li><li><a href="#variant.UnsupportedDeltaCrl" title="UnsupportedDeltaCrl">UnsupportedDeltaCrl</a></li><li><a href="#variant.UnsupportedIndirectCrl" title="UnsupportedIndirectCrl">UnsupportedIndirectCrl</a></li><li><a href="#variant.UnsupportedNameType" title="UnsupportedNameType">UnsupportedNameType</a></li><li><a href="#variant.UnsupportedRevocationReason" title="UnsupportedRevocationReason">UnsupportedRevocationReason</a></li><li><a href="#variant.UnsupportedRevocationReasonsPartitioning" title="UnsupportedRevocationReasonsPartitioning">UnsupportedRevocationReasonsPartitioning</a></li><li><a href="#variant.UnsupportedSignatureAlgorithm" title="UnsupportedSignatureAlgorithm">UnsupportedSignatureAlgorithm</a></li><li><a href="#variant.UnsupportedSignatureAlgorithmContext" title="UnsupportedSignatureAlgorithmContext">UnsupportedSignatureAlgorithmContext</a></li><li><a href="#variant.UnsupportedSignatureAlgorithmForPublicKey" title="UnsupportedSignatureAlgorithmForPublicKey">UnsupportedSignatureAlgorithmForPublicKey</a></li><li><a href="#variant.UnsupportedSignatureAlgorithmForPublicKeyContext" title="UnsupportedSignatureAlgorithmForPublicKeyContext">UnsupportedSignatureAlgorithmForPublicKeyContext</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Error" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-Error" title="Debug">Debug</a></li><li><a href="#impl-Display-for-Error" title="Display">Display</a></li><li><a href="#impl-Eq-for-Error" title="Eq">Eq</a></li><li><a href="#impl-Error-for-Error" title="Error">Error</a></li><li><a href="#impl-From%3CError%3E-for-ControlFlow%3CError,+Error%3E" title="From<Error>">From<Error></a></li><li><a href="#impl-PartialEq-for-Error" title="PartialEq">PartialEq</a></li><li><a href="#impl-StructuralPartialEq-for-Error" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Error" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Error" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Error" title="Send">Send</a></li><li><a href="#impl-Sync-for-Error" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Error" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Error" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate webpki</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">webpki</a></div><h1>Enum <span class="enum">Error</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/webpki/error.rs.html#31-276">Source</a> </span></div><pre class="rust item-decl"><code><div class="code-attribute">#[non_exhaustive]</div>pub enum Error {
|
||
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 50 variants</span></summary> BadDer,
|
||
BadDerTime,
|
||
CaUsedAsEndEntity,
|
||
CertExpired {
|
||
time: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a>,
|
||
not_after: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a>,
|
||
},
|
||
CertNotValidForName(<a class="struct" href="struct.InvalidNameContext.html" title="struct webpki::InvalidNameContext">InvalidNameContext</a>),
|
||
CertNotValidYet {
|
||
time: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a>,
|
||
not_before: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a>,
|
||
},
|
||
CertRevoked,
|
||
CrlExpired {
|
||
time: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a>,
|
||
next_update: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a>,
|
||
},
|
||
EmptyEkuExtension,
|
||
EndEntityUsedAsCa,
|
||
ExtensionValueInvalid,
|
||
InvalidCertValidity,
|
||
InvalidCrlNumber,
|
||
InvalidNetworkMaskConstraint,
|
||
InvalidSerialNumber,
|
||
InvalidCrlSignatureForPublicKey,
|
||
InvalidSignatureForPublicKey,
|
||
IssuerNotCrlSigner,
|
||
MalformedDnsIdentifier,
|
||
MalformedExtensions,
|
||
MalformedNameConstraint,
|
||
MaximumNameConstraintComparisonsExceeded,
|
||
MaximumPathBuildCallsExceeded,
|
||
MaximumPathDepthExceeded,
|
||
MaximumSignatureChecksExceeded,
|
||
NameConstraintViolation,
|
||
PathLenConstraintViolated,
|
||
RequiredEkuNotFound,
|
||
RequiredEkuNotFoundContext(<a class="struct" href="struct.RequiredEkuNotFoundContext.html" title="struct webpki::RequiredEkuNotFoundContext">RequiredEkuNotFoundContext</a>),
|
||
SignatureAlgorithmMismatch,
|
||
TrailingData(<a class="enum" href="enum.DerTypeId.html" title="enum webpki::DerTypeId">DerTypeId</a>),
|
||
UnknownIssuer,
|
||
UnknownRevocationStatus,
|
||
UnsupportedCertVersion,
|
||
UnsupportedCriticalExtension,
|
||
UnsupportedCrlIssuingDistributionPoint,
|
||
UnsupportedCrlVersion,
|
||
UnsupportedDeltaCrl,
|
||
UnsupportedIndirectCrl,
|
||
UnsupportedNameType,
|
||
UnsupportedRevocationReason,
|
||
UnsupportedRevocationReasonsPartitioning,
|
||
UnsupportedCrlSignatureAlgorithm,
|
||
UnsupportedCrlSignatureAlgorithmContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmContext.html" title="struct webpki::UnsupportedSignatureAlgorithmContext">UnsupportedSignatureAlgorithmContext</a>),
|
||
UnsupportedSignatureAlgorithm,
|
||
UnsupportedSignatureAlgorithmContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmContext.html" title="struct webpki::UnsupportedSignatureAlgorithmContext">UnsupportedSignatureAlgorithmContext</a>),
|
||
UnsupportedCrlSignatureAlgorithmForPublicKey,
|
||
UnsupportedCrlSignatureAlgorithmForPublicKeyContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmForPublicKeyContext.html" title="struct webpki::UnsupportedSignatureAlgorithmForPublicKeyContext">UnsupportedSignatureAlgorithmForPublicKeyContext</a>),
|
||
UnsupportedSignatureAlgorithmForPublicKey,
|
||
UnsupportedSignatureAlgorithmForPublicKeyContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmForPublicKeyContext.html" title="struct webpki::UnsupportedSignatureAlgorithmForPublicKeyContext">UnsupportedSignatureAlgorithmForPublicKeyContext</a>),
|
||
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An error that occurs during certificate validation or name validation.</p>
|
||
</div></details><h2 id="variants" class="variants section-header">Variants (Non-exhaustive)<a href="#variants" class="anchor">§</a></h2><details class="toggle non-exhaustive"><summary class="hideme"><span>This enum is marked as non-exhaustive</span></summary><div class="docblock">Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.</div></details><div class="variants"><section id="variant.BadDer" class="variant"><a href="#variant.BadDer" class="anchor">§</a><h3 class="code-header">BadDer</h3></section><div class="docblock"><p>The encoding of some ASN.1 DER-encoded item is invalid.</p>
|
||
</div><section id="variant.BadDerTime" class="variant"><a href="#variant.BadDerTime" class="anchor">§</a><h3 class="code-header">BadDerTime</h3></section><div class="docblock"><p>The encoding of an ASN.1 DER-encoded time is invalid.</p>
|
||
</div><section id="variant.CaUsedAsEndEntity" class="variant"><a href="#variant.CaUsedAsEndEntity" class="anchor">§</a><h3 class="code-header">CaUsedAsEndEntity</h3></section><div class="docblock"><p>A CA certificate is being used as an end-entity certificate.</p>
|
||
</div><section id="variant.CertExpired" class="variant"><a href="#variant.CertExpired" class="anchor">§</a><h3 class="code-header">CertExpired</h3></section><div class="docblock"><p>The certificate is expired; i.e. the time it is being validated for is
|
||
later than the certificate’s notAfter time.</p>
|
||
</div><div class="sub-variant" id="variant.CertExpired.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.CertExpired.field.time" class="section-header"><a href="#variant.CertExpired.field.time" class="anchor field">§</a><code>time: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a></code></span><div class="docblock"><p>The validation time.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.CertExpired.field.not_after" class="section-header"><a href="#variant.CertExpired.field.not_after" class="anchor field">§</a><code>not_after: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a></code></span><div class="docblock"><p>The notAfter time of the certificate.</p>
|
||
</div></div></div><section id="variant.CertNotValidForName" class="variant"><a href="#variant.CertNotValidForName" class="anchor">§</a><h3 class="code-header">CertNotValidForName(<a class="struct" href="struct.InvalidNameContext.html" title="struct webpki::InvalidNameContext">InvalidNameContext</a>)</h3></section><div class="docblock"><p>The certificate is not valid for the name it is being validated for.</p>
|
||
</div><section id="variant.CertNotValidYet" class="variant"><a href="#variant.CertNotValidYet" class="anchor">§</a><h3 class="code-header">CertNotValidYet</h3></section><div class="docblock"><p>The certificate is not valid yet; i.e. the time it is being validated
|
||
for is earlier than the certificate’s notBefore time.</p>
|
||
</div><div class="sub-variant" id="variant.CertNotValidYet.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.CertNotValidYet.field.time" class="section-header"><a href="#variant.CertNotValidYet.field.time" class="anchor field">§</a><code>time: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a></code></span><div class="docblock"><p>The validation time.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.CertNotValidYet.field.not_before" class="section-header"><a href="#variant.CertNotValidYet.field.not_before" class="anchor field">§</a><code>not_before: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a></code></span><div class="docblock"><p>The notBefore time of the certificate.</p>
|
||
</div></div></div><section id="variant.CertRevoked" class="variant"><a href="#variant.CertRevoked" class="anchor">§</a><h3 class="code-header">CertRevoked</h3></section><div class="docblock"><p>The certificate, or one of its issuers, has been revoked.</p>
|
||
</div><section id="variant.CrlExpired" class="variant"><a href="#variant.CrlExpired" class="anchor">§</a><h3 class="code-header">CrlExpired</h3></section><div class="docblock"><p>The CRL is expired; i.e. the verification time is not before the time
|
||
in the CRL nextUpdate field.</p>
|
||
</div><div class="sub-variant" id="variant.CrlExpired.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.CrlExpired.field.time" class="section-header"><a href="#variant.CrlExpired.field.time" class="anchor field">§</a><code>time: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a></code></span><div class="docblock"><p>The validation time.</p>
|
||
</div></div><div class="sub-variant-field"><span id="variant.CrlExpired.field.next_update" class="section-header"><a href="#variant.CrlExpired.field.next_update" class="anchor field">§</a><code>next_update: <a class="struct" href="../rustls_pki_types/struct.UnixTime.html" title="struct rustls_pki_types::UnixTime">UnixTime</a></code></span><div class="docblock"><p>The nextUpdate time of the CRL.</p>
|
||
</div></div></div><section id="variant.EmptyEkuExtension" class="variant"><a href="#variant.EmptyEkuExtension" class="anchor">§</a><h3 class="code-header">EmptyEkuExtension</h3></section><div class="docblock"><p>The certificate has an Extended Key Usage extension without any EKU values.</p>
|
||
</div><section id="variant.EndEntityUsedAsCa" class="variant"><a href="#variant.EndEntityUsedAsCa" class="anchor">§</a><h3 class="code-header">EndEntityUsedAsCa</h3></section><div class="docblock"><p>An end-entity certificate is being used as a CA certificate.</p>
|
||
</div><section id="variant.ExtensionValueInvalid" class="variant"><a href="#variant.ExtensionValueInvalid" class="anchor">§</a><h3 class="code-header">ExtensionValueInvalid</h3></section><div class="docblock"><p>An X.509 extension is invalid.</p>
|
||
</div><section id="variant.InvalidCertValidity" class="variant"><a href="#variant.InvalidCertValidity" class="anchor">§</a><h3 class="code-header">InvalidCertValidity</h3></section><div class="docblock"><p>The certificate validity period (notBefore, notAfter) is invalid; e.g.
|
||
the notAfter time is earlier than the notBefore time.</p>
|
||
</div><section id="variant.InvalidCrlNumber" class="variant"><a href="#variant.InvalidCrlNumber" class="anchor">§</a><h3 class="code-header">InvalidCrlNumber</h3></section><div class="docblock"><p>A CRL number extension was invalid:</p>
|
||
<ul>
|
||
<li>it was mis-encoded</li>
|
||
<li>it was negative</li>
|
||
<li>it was too long</li>
|
||
</ul>
|
||
</div><section id="variant.InvalidNetworkMaskConstraint" class="variant"><a href="#variant.InvalidNetworkMaskConstraint" class="anchor">§</a><h3 class="code-header">InvalidNetworkMaskConstraint</h3></section><div class="docblock"><p>A iPAddress name constraint was invalid:</p>
|
||
<ul>
|
||
<li>it had a sparse network mask (ie, cannot be written in CIDR form).</li>
|
||
<li>it was too long or short</li>
|
||
</ul>
|
||
</div><section id="variant.InvalidSerialNumber" class="variant"><a href="#variant.InvalidSerialNumber" class="anchor">§</a><h3 class="code-header">InvalidSerialNumber</h3></section><div class="docblock"><p>A serial number was invalid:</p>
|
||
<ul>
|
||
<li>it was misencoded</li>
|
||
<li>it was negative</li>
|
||
<li>it was too long</li>
|
||
</ul>
|
||
</div><section id="variant.InvalidCrlSignatureForPublicKey" class="variant"><a href="#variant.InvalidCrlSignatureForPublicKey" class="anchor">§</a><h3 class="code-header">InvalidCrlSignatureForPublicKey</h3></section><div class="docblock"><p>The CRL signature is invalid for the issuer’s public key.</p>
|
||
</div><section id="variant.InvalidSignatureForPublicKey" class="variant"><a href="#variant.InvalidSignatureForPublicKey" class="anchor">§</a><h3 class="code-header">InvalidSignatureForPublicKey</h3></section><div class="docblock"><p>The signature is invalid for the given public key.</p>
|
||
</div><section id="variant.IssuerNotCrlSigner" class="variant"><a href="#variant.IssuerNotCrlSigner" class="anchor">§</a><h3 class="code-header">IssuerNotCrlSigner</h3></section><div class="docblock"><p>A CRL was signed by an issuer that has a KeyUsage bitstring that does not include
|
||
the cRLSign key usage bit.</p>
|
||
</div><section id="variant.MalformedDnsIdentifier" class="variant"><a href="#variant.MalformedDnsIdentifier" class="anchor">§</a><h3 class="code-header">MalformedDnsIdentifier</h3></section><div class="docblock"><p>A presented or reference DNS identifier was malformed, potentially
|
||
containing invalid characters or invalid labels.</p>
|
||
</div><section id="variant.MalformedExtensions" class="variant"><a href="#variant.MalformedExtensions" class="anchor">§</a><h3 class="code-header">MalformedExtensions</h3></section><div class="docblock"><p>The certificate extensions are malformed.</p>
|
||
<p>In particular, webpki requires the DNS name(s) be in the subjectAltName
|
||
extension as required by the CA/Browser Forum Baseline Requirements
|
||
and as recommended by RFC6125.</p>
|
||
</div><section id="variant.MalformedNameConstraint" class="variant"><a href="#variant.MalformedNameConstraint" class="anchor">§</a><h3 class="code-header">MalformedNameConstraint</h3></section><div class="docblock"><p>A name constraint was malformed, potentially containing invalid characters or
|
||
invalid labels.</p>
|
||
</div><section id="variant.MaximumNameConstraintComparisonsExceeded" class="variant"><a href="#variant.MaximumNameConstraintComparisonsExceeded" class="anchor">§</a><h3 class="code-header">MaximumNameConstraintComparisonsExceeded</h3></section><div class="docblock"><p>The maximum number of name constraint comparisons has been reached.</p>
|
||
</div><section id="variant.MaximumPathBuildCallsExceeded" class="variant"><a href="#variant.MaximumPathBuildCallsExceeded" class="anchor">§</a><h3 class="code-header">MaximumPathBuildCallsExceeded</h3></section><div class="docblock"><p>The maximum number of internal path building calls has been reached. Path complexity is too great.</p>
|
||
</div><section id="variant.MaximumPathDepthExceeded" class="variant"><a href="#variant.MaximumPathDepthExceeded" class="anchor">§</a><h3 class="code-header">MaximumPathDepthExceeded</h3></section><div class="docblock"><p>The path search was terminated because it became too deep.</p>
|
||
</div><section id="variant.MaximumSignatureChecksExceeded" class="variant"><a href="#variant.MaximumSignatureChecksExceeded" class="anchor">§</a><h3 class="code-header">MaximumSignatureChecksExceeded</h3></section><div class="docblock"><p>The maximum number of signature checks has been reached. Path complexity is too great.</p>
|
||
</div><section id="variant.NameConstraintViolation" class="variant"><a href="#variant.NameConstraintViolation" class="anchor">§</a><h3 class="code-header">NameConstraintViolation</h3></section><div class="docblock"><p>The certificate violates one or more name constraints.</p>
|
||
</div><section id="variant.PathLenConstraintViolated" class="variant"><a href="#variant.PathLenConstraintViolated" class="anchor">§</a><h3 class="code-header">PathLenConstraintViolated</h3></section><div class="docblock"><p>The certificate violates one or more path length constraints.</p>
|
||
</div><section id="variant.RequiredEkuNotFound" class="variant"><a href="#variant.RequiredEkuNotFound" class="anchor">§</a><h3 class="code-header">RequiredEkuNotFound</h3></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.103.2: use RequiredEkuNotFoundContext instead</span></div></span><div class="docblock"><p>The certificate is not valid for the Extended Key Usage for which it is
|
||
being validated.</p>
|
||
</div><section id="variant.RequiredEkuNotFoundContext" class="variant"><a href="#variant.RequiredEkuNotFoundContext" class="anchor">§</a><h3 class="code-header">RequiredEkuNotFoundContext(<a class="struct" href="struct.RequiredEkuNotFoundContext.html" title="struct webpki::RequiredEkuNotFoundContext">RequiredEkuNotFoundContext</a>)</h3></section><div class="docblock"><p>The certificate is not valid for the Extended Key Usage for which it is
|
||
being validated.</p>
|
||
</div><section id="variant.SignatureAlgorithmMismatch" class="variant"><a href="#variant.SignatureAlgorithmMismatch" class="anchor">§</a><h3 class="code-header">SignatureAlgorithmMismatch</h3></section><div class="docblock"><p>The algorithm in the TBSCertificate “signature” field of a certificate
|
||
does not match the algorithm in the signature of the certificate.</p>
|
||
</div><section id="variant.TrailingData" class="variant"><a href="#variant.TrailingData" class="anchor">§</a><h3 class="code-header">TrailingData(<a class="enum" href="enum.DerTypeId.html" title="enum webpki::DerTypeId">DerTypeId</a>)</h3></section><div class="docblock"><p>Trailing data was found while parsing DER-encoded input for the named type.</p>
|
||
</div><section id="variant.UnknownIssuer" class="variant"><a href="#variant.UnknownIssuer" class="anchor">§</a><h3 class="code-header">UnknownIssuer</h3></section><div class="docblock"><p>A valid issuer for the certificate could not be found.</p>
|
||
</div><section id="variant.UnknownRevocationStatus" class="variant"><a href="#variant.UnknownRevocationStatus" class="anchor">§</a><h3 class="code-header">UnknownRevocationStatus</h3></section><div class="docblock"><p>The certificate’s revocation status could not be determined.</p>
|
||
</div><section id="variant.UnsupportedCertVersion" class="variant"><a href="#variant.UnsupportedCertVersion" class="anchor">§</a><h3 class="code-header">UnsupportedCertVersion</h3></section><div class="docblock"><p>The certificate is not a v3 X.509 certificate.</p>
|
||
<p>This error may be also reported if the certificate version field
|
||
is malformed.</p>
|
||
</div><section id="variant.UnsupportedCriticalExtension" class="variant"><a href="#variant.UnsupportedCriticalExtension" class="anchor">§</a><h3 class="code-header">UnsupportedCriticalExtension</h3></section><div class="docblock"><p>The certificate contains an unsupported critical extension.</p>
|
||
</div><section id="variant.UnsupportedCrlIssuingDistributionPoint" class="variant"><a href="#variant.UnsupportedCrlIssuingDistributionPoint" class="anchor">§</a><h3 class="code-header">UnsupportedCrlIssuingDistributionPoint</h3></section><div class="docblock"><p>The CRL contains an issuing distribution point with no distribution point name,
|
||
or a distribution point name relative to an issuer.</p>
|
||
</div><section id="variant.UnsupportedCrlVersion" class="variant"><a href="#variant.UnsupportedCrlVersion" class="anchor">§</a><h3 class="code-header">UnsupportedCrlVersion</h3></section><div class="docblock"><p>The CRL is not a v2 X.509 CRL.</p>
|
||
<p>The RFC 5280 web PKI profile mandates only version 2 be used. See section
|
||
5.1.2.1 for more information.</p>
|
||
<p>This error may also be reported if the CRL version field is malformed.</p>
|
||
</div><section id="variant.UnsupportedDeltaCrl" class="variant"><a href="#variant.UnsupportedDeltaCrl" class="anchor">§</a><h3 class="code-header">UnsupportedDeltaCrl</h3></section><div class="docblock"><p>The CRL is an unsupported “delta” CRL.</p>
|
||
</div><section id="variant.UnsupportedIndirectCrl" class="variant"><a href="#variant.UnsupportedIndirectCrl" class="anchor">§</a><h3 class="code-header">UnsupportedIndirectCrl</h3></section><div class="docblock"><p>The CRL contains unsupported “indirect” entries.</p>
|
||
</div><section id="variant.UnsupportedNameType" class="variant"><a href="#variant.UnsupportedNameType" class="anchor">§</a><h3 class="code-header">UnsupportedNameType</h3></section><div class="docblock"><p>The <code>ServerName</code> contained an unsupported type of value.</p>
|
||
</div><section id="variant.UnsupportedRevocationReason" class="variant"><a href="#variant.UnsupportedRevocationReason" class="anchor">§</a><h3 class="code-header">UnsupportedRevocationReason</h3></section><div class="docblock"><p>The revocation reason is not in the set of supported revocation reasons.</p>
|
||
</div><section id="variant.UnsupportedRevocationReasonsPartitioning" class="variant"><a href="#variant.UnsupportedRevocationReasonsPartitioning" class="anchor">§</a><h3 class="code-header">UnsupportedRevocationReasonsPartitioning</h3></section><div class="docblock"><p>The CRL is partitioned by revocation reasons.</p>
|
||
</div><section id="variant.UnsupportedCrlSignatureAlgorithm" class="variant"><a href="#variant.UnsupportedCrlSignatureAlgorithm" class="anchor">§</a><h3 class="code-header">UnsupportedCrlSignatureAlgorithm</h3></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.103.4: use UnsupportedCrlSignatureAlgorithmContext instead</span></div></span><div class="docblock"><p>The signature algorithm for a signature over a CRL is not in the set of supported
|
||
signature algorithms given.</p>
|
||
</div><section id="variant.UnsupportedCrlSignatureAlgorithmContext" class="variant"><a href="#variant.UnsupportedCrlSignatureAlgorithmContext" class="anchor">§</a><h3 class="code-header">UnsupportedCrlSignatureAlgorithmContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmContext.html" title="struct webpki::UnsupportedSignatureAlgorithmContext">UnsupportedSignatureAlgorithmContext</a>)</h3></section><div class="docblock"><p>The signature algorithm for a signature is not in the set of supported
|
||
signature algorithms given.</p>
|
||
</div><section id="variant.UnsupportedSignatureAlgorithm" class="variant"><a href="#variant.UnsupportedSignatureAlgorithm" class="anchor">§</a><h3 class="code-header">UnsupportedSignatureAlgorithm</h3></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.103.4: use UnsupportedSignatureAlgorithmContext instead</span></div></span><div class="docblock"><p>The signature algorithm for a signature is not in the set of supported
|
||
signature algorithms given.</p>
|
||
</div><section id="variant.UnsupportedSignatureAlgorithmContext" class="variant"><a href="#variant.UnsupportedSignatureAlgorithmContext" class="anchor">§</a><h3 class="code-header">UnsupportedSignatureAlgorithmContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmContext.html" title="struct webpki::UnsupportedSignatureAlgorithmContext">UnsupportedSignatureAlgorithmContext</a>)</h3></section><div class="docblock"><p>The signature algorithm for a signature is not in the set of supported
|
||
signature algorithms given.</p>
|
||
</div><section id="variant.UnsupportedCrlSignatureAlgorithmForPublicKey" class="variant"><a href="#variant.UnsupportedCrlSignatureAlgorithmForPublicKey" class="anchor">§</a><h3 class="code-header">UnsupportedCrlSignatureAlgorithmForPublicKey</h3></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.103.4: use UnsupportedCrlSignatureAlgorithmForPublicKeyContext instead</span></div></span><div class="docblock"><p>The CRL signature’s algorithm does not match the algorithm of the issuer
|
||
public key it is being validated for. This may be because the public key
|
||
algorithm’s OID isn’t recognized (e.g. DSA), or the public key
|
||
algorithm’s parameters don’t match the supported parameters for that
|
||
algorithm (e.g. ECC keys for unsupported curves), or the public key
|
||
algorithm and the signature algorithm simply don’t match (e.g.
|
||
verifying an RSA signature with an ECC public key).</p>
|
||
</div><section id="variant.UnsupportedCrlSignatureAlgorithmForPublicKeyContext" class="variant"><a href="#variant.UnsupportedCrlSignatureAlgorithmForPublicKeyContext" class="anchor">§</a><h3 class="code-header">UnsupportedCrlSignatureAlgorithmForPublicKeyContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmForPublicKeyContext.html" title="struct webpki::UnsupportedSignatureAlgorithmForPublicKeyContext">UnsupportedSignatureAlgorithmForPublicKeyContext</a>)</h3></section><div class="docblock"><p>The signature’s algorithm does not match the algorithm of the public
|
||
key it is being validated for. This may be because the public key
|
||
algorithm’s OID isn’t recognized (e.g. DSA), or the public key
|
||
algorithm’s parameters don’t match the supported parameters for that
|
||
algorithm (e.g. ECC keys for unsupported curves), or the public key
|
||
algorithm and the signature algorithm simply don’t match (e.g.
|
||
verifying an RSA signature with an ECC public key).</p>
|
||
</div><section id="variant.UnsupportedSignatureAlgorithmForPublicKey" class="variant"><a href="#variant.UnsupportedSignatureAlgorithmForPublicKey" class="anchor">§</a><h3 class="code-header">UnsupportedSignatureAlgorithmForPublicKey</h3></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.103.4: use UnsupportedSignatureAlgorithmForPublicKeyContext instead</span></div></span><div class="docblock"><p>The signature’s algorithm does not match the algorithm of the public
|
||
key it is being validated for. This may be because the public key
|
||
algorithm’s OID isn’t recognized (e.g. DSA), or the public key
|
||
algorithm’s parameters don’t match the supported parameters for that
|
||
algorithm (e.g. ECC keys for unsupported curves), or the public key
|
||
algorithm and the signature algorithm simply don’t match (e.g.
|
||
verifying an RSA signature with an ECC public key).</p>
|
||
</div><section id="variant.UnsupportedSignatureAlgorithmForPublicKeyContext" class="variant"><a href="#variant.UnsupportedSignatureAlgorithmForPublicKeyContext" class="anchor">§</a><h3 class="code-header">UnsupportedSignatureAlgorithmForPublicKeyContext(<a class="struct" href="struct.UnsupportedSignatureAlgorithmForPublicKeyContext.html" title="struct webpki::UnsupportedSignatureAlgorithmForPublicKeyContext">UnsupportedSignatureAlgorithmForPublicKeyContext</a>)</h3></section><div class="docblock"><p>The signature’s algorithm does not match the algorithm of the public
|
||
key it is being validated for. This may be because the public key
|
||
algorithm’s OID isn’t recognized (e.g. DSA), or the public key
|
||
algorithm’s parameters don’t match the supported parameters for that
|
||
algorithm (e.g. ECC keys for unsupported curves), or the public key
|
||
algorithm and the signature algorithm simply don’t match (e.g.
|
||
verifying an RSA signature with an ECC public key).</p>
|
||
</div></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Error" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#impl-Clone-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Error" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#impl-Debug-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.93.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-Error" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#378-382">Source</a><a href="#impl-Display-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../src/webpki/error.rs.html#379-381">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.93.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Error-for-Error" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#385">Source</a><a href="#impl-Error-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html" title="trait core::error::Error">Error</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>std</code></strong> only.</div></span></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.source" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.30.0">1.30.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/error.rs.html#111">Source</a></span><a href="#method.source" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html#method.source" class="fn">source</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&(dyn <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + 'static)></h4></section></summary><div class='docblock'>Returns the lower-level source of this error, if any. <a href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html#method.source">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.description" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/error.rs.html#137">Source</a></span><a href="#method.description" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html#method.description" class="fn">description</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.42.0: use the Display impl or to_string()</span></div></span><div class='docblock'> <a href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html#method.description">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cause" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/error.rs.html#147">Source</a></span><a href="#method.cause" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html#method.cause" class="fn">cause</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html" title="trait core::error::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 1.33.0: replaced by Error::source, which can support downcasting</span></div></span></details><details class="toggle method-toggle" open><summary><section id="method.provide" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/error.rs.html#210">Source</a><a href="#method.provide" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html#method.provide" class="fn">provide</a><'a>(&'a self, request: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/error/struct.Request.html" title="struct core::error::Request">Request</a><'a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>error_generic_member_access</code>)</span></div></span><div class='docblock'>Provides type-based access to context intended for error reports. <a href="https://doc.rust-lang.org/1.93.1/core/error/trait.Error.html#method.provide">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CError%3E-for-ControlFlow%3CError,+Error%3E" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#367-376">Source</a><a href="#impl-From%3CError%3E-for-ControlFlow%3CError,+Error%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a>> for <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/ops/control_flow/enum.ControlFlow.html" title="enum core::ops::control_flow::ControlFlow">ControlFlow</a><<a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a>, <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../src/webpki/error.rs.html#368-375">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a>) -> Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-Error" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#impl-PartialEq-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/cmp.rs.html#264">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.</div></details></div></details><section id="impl-Eq-for-Error" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#impl-Eq-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section><section id="impl-StructuralPartialEq-for-Error" class="impl"><a class="src rightside" href="../src/webpki/error.rs.html#29">Source</a><a href="#impl-StructuralPartialEq-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Error" class="impl"><a href="#impl-Freeze-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section><section id="impl-RefUnwindSafe-for-Error" class="impl"><a href="#impl-RefUnwindSafe-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section><section id="impl-Send-for-Error" class="impl"><a href="#impl-Send-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section><section id="impl-Sync-for-Error" class="impl"><a href="#impl-Sync-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section><section id="impl-Unpin-for-Error" class="impl"><a href="#impl-Unpin-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section><section id="impl-UnwindSafe-for-Error" class="impl"><a href="#impl-UnwindSafe-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.Error.html" title="enum webpki::Error">Error</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#547">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#549">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#85-87">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#89">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#90">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#94">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/string.rs.html#2864">Source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/string.rs.html#2866">Source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html> |