1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-09-03 05:19:23 +02:00

Deploying to gh-pages from @ 8fd166435f 🚀

This commit is contained in:
robjtede
2022-11-08 09:33:31 +00:00
parent d11dc76e93
commit bbea2ee322
240 changed files with 7950 additions and 840 deletions

View File

@@ -1,5 +1,5 @@
<!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="Source of the Rust file `actix-cors/src/error.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>error.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../source-script.js"></script><script defer src="../../source-files.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><div class="width-limiter"><nav class="sub"><a class="sub-logo-container" href="../../actix_cors/index.html">
<img src="https://actix.rs/img/logo.png" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><pre class="src-line-numbers"><span id="1">1</span>
<!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="Source of the Rust file `actix-cors/src/error.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>error.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-ef244fc9943488f7.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-c11f492748536797.css"><link rel="stylesheet" disabled href="../../static.files/dark-a78f946771c40031.css"><link rel="stylesheet" disabled href="../../static.files/ayu-70b683d68cb31790.css"><script id="default-settings" ></script><script src="../../static.files/storage-d43fa987303ecbbb.js"></script><script defer src="../../static.files/source-script-74087aa2e88f4475.js"></script><script defer src="../../source-files.js"></script><script defer src="../../static.files/main-0dede64717b247ca.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-201a7e04dc4c6fce.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><div class="width-limiter"><nav class="sub"><a class="sub-logo-container" href="../../actix_cors/index.html">
<img src="https://actix.rs/img/logo.png" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-5ec35bf9ca753509.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><pre class="src-line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
@@ -52,39 +52,39 @@
<span class="kw">use </span>derive_more::{Display, Error};
<span class="doccomment">/// Errors that can occur when processing CORS guarded requests.
</span><span class="attribute">#[derive(Debug, Clone, Display, Error)]
</span><span class="attr">#[derive(Debug, Clone, Display, Error)]
#[non_exhaustive]
</span><span class="kw">pub enum </span>CorsError {
<span class="doccomment">/// Allowed origin argument must not be wildcard (`*`).
</span><span class="attribute">#[display(fmt = <span class="string">&quot;`allowed_origin` argument must not be wildcard (`*`)&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;`allowed_origin` argument must not be wildcard (`*`)&quot;</span>)]
</span>WildcardOrigin,
<span class="doccomment">/// Request header `Origin` is required but was not provided.
</span><span class="attribute">#[display(fmt = <span class="string">&quot;Request header `Origin` is required but was not provided&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;Request header `Origin` is required but was not provided&quot;</span>)]
</span>MissingOrigin,
<span class="doccomment">/// Request header `Access-Control-Request-Method` is required but is missing.
</span><span class="attribute">#[display(fmt = <span class="string">&quot;Request header `Access-Control-Request-Method` is required but is missing&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;Request header `Access-Control-Request-Method` is required but is missing&quot;</span>)]
</span>MissingRequestMethod,
<span class="doccomment">/// Request header `Access-Control-Request-Method` has an invalid value.
</span><span class="attribute">#[display(fmt = <span class="string">&quot;Request header `Access-Control-Request-Method` has an invalid value&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;Request header `Access-Control-Request-Method` has an invalid value&quot;</span>)]
</span>BadRequestMethod,
<span class="doccomment">/// Request header `Access-Control-Request-Headers` has an invalid value.
</span><span class="attribute">#[display(fmt = <span class="string">&quot;Request header `Access-Control-Request-Headers` has an invalid value&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;Request header `Access-Control-Request-Headers` has an invalid value&quot;</span>)]
</span>BadRequestHeaders,
<span class="doccomment">/// Origin is not allowed to make this request.
</span><span class="attribute">#[display(fmt = <span class="string">&quot;Origin is not allowed to make this request&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;Origin is not allowed to make this request&quot;</span>)]
</span>OriginNotAllowed,
<span class="doccomment">/// Request method is not allowed.
</span><span class="attribute">#[display(fmt = <span class="string">&quot;Requested method is not allowed&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;Requested method is not allowed&quot;</span>)]
</span>MethodNotAllowed,
<span class="doccomment">/// One or more request headers are not allowed.
</span><span class="attribute">#[display(fmt = <span class="string">&quot;One or more request headers are not allowed&quot;</span>)]
</span><span class="attr">#[display(fmt = <span class="string">&quot;One or more request headers are not allowed&quot;</span>)]
</span>HeadersNotAllowed,
}
@@ -98,4 +98,4 @@
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="actix_cors" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5e9772042 2022-10-29)" ></div></body></html>
</section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_cors" data-themes="" data-resource-suffix="" data-rustdoc-version="1.67.0-nightly (73c9eaf21 2022-11-07)" data-search-js="search-39ee4160c7dc16c9.js" data-settings-js="settings-3a0b9947ba1bd99a.js" data-settings-css="settings-a66f7524084a489a.css" ></div></body></html>