mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-30 15:08:29 +00:00
Deploying to gh-pages from @ 6be10af6fd2e7f29686900f51ff9c1a4be7926dd 🚀
This commit is contained in:
parent
ed5442414c
commit
a974f0650f
@ -3,4 +3,4 @@
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../guard/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate guard</p><div class="block version"><p>Version 0.1.0</p></div><a id="all-types" href="index.html"><p>Back to index</p></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span>
|
||||
</span>
|
||||
<span class="in-band">List of all items</span></h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.Data.html">Data</a></li><li><a href="struct.SETTINGS.html">SETTINGS</a></li><li><a href="struct.Settings.html">Settings</a></li><li><a href="api/v1/auth/struct.Login.html">api::v1::auth::Login</a></li><li><a href="api/v1/auth/struct.Password.html">api::v1::auth::Password</a></li><li><a href="api/v1/auth/struct.Register.html">api::v1::auth::Register</a></li><li><a href="api/v1/auth/struct.delete_account.html">api::v1::auth::delete_account</a></li><li><a href="api/v1/auth/struct.signin.html">api::v1::auth::signin</a></li><li><a href="api/v1/auth/struct.signout.html">api::v1::auth::signout</a></li><li><a href="api/v1/auth/struct.signup.html">api::v1::auth::signup</a></li><li><a href="api/v1/mcaptcha/struct.Domain.html">api::v1::mcaptcha::Domain</a></li><li><a href="api/v1/mcaptcha/struct.add_domain.html">api::v1::mcaptcha::add_domain</a></li><li><a href="api/v1/mcaptcha/struct.delete_domain.html">api::v1::mcaptcha::delete_domain</a></li><li><a href="data/struct.Data.html">data::Data</a></li><li><a href="errors/struct.ErrorToResponse.html">errors::ErrorToResponse</a></li><li><a href="settings/struct.Captcha.html">settings::Captcha</a></li><li><a href="settings/struct.Database.html">settings::Database</a></li><li><a href="settings/struct.DatabaseBuilder.html">settings::DatabaseBuilder</a></li><li><a href="settings/struct.Server.html">settings::Server</a></li><li><a href="settings/struct.Settings.html">settings::Settings</a></li></ul><h3 id="Enums">Enums</h3><ul class="enums docblock"><li><a href="errors/enum.ServiceError.html">errors::ServiceError</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="api/v1/auth/fn.is_authenticated.html">api::v1::auth::is_authenticated</a></li><li><a href="api/v1/fn.services.html">api::v1::services</a></li><li><a href="fn.get_identity_service.html">get_identity_service</a></li><li><a href="fn.get_json_err.html">get_json_err</a></li><li><a href="fn.main.html">main</a></li><li><a href="settings/fn.set_database_url.html">settings::set_database_url</a></li><li><a href="settings/fn.set_from_database_url.html">settings::set_from_database_url</a></li></ul><h3 id="Typedefs">Typedefs</h3><ul class="typedefs docblock"><li><a href="errors/type.ServiceResult.html">errors::ServiceResult</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "guard";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
||||
<span class="in-band">List of all items</span></h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.Data.html">Data</a></li><li><a href="struct.SETTINGS.html">SETTINGS</a></li><li><a href="struct.Settings.html">Settings</a></li><li><a href="api/v1/auth/struct.Login.html">api::v1::auth::Login</a></li><li><a href="api/v1/auth/struct.Password.html">api::v1::auth::Password</a></li><li><a href="api/v1/auth/struct.Register.html">api::v1::auth::Register</a></li><li><a href="api/v1/auth/struct.delete_account.html">api::v1::auth::delete_account</a></li><li><a href="api/v1/auth/struct.signin.html">api::v1::auth::signin</a></li><li><a href="api/v1/auth/struct.signout.html">api::v1::auth::signout</a></li><li><a href="api/v1/auth/struct.signup.html">api::v1::auth::signup</a></li><li><a href="api/v1/mcaptcha/struct.Domain.html">api::v1::mcaptcha::Domain</a></li><li><a href="api/v1/mcaptcha/struct.TokenKeyPair.html">api::v1::mcaptcha::TokenKeyPair</a></li><li><a href="api/v1/mcaptcha/struct.TokenName.html">api::v1::mcaptcha::TokenName</a></li><li><a href="api/v1/mcaptcha/struct.add_domain.html">api::v1::mcaptcha::add_domain</a></li><li><a href="api/v1/mcaptcha/struct.delete_domain.html">api::v1::mcaptcha::delete_domain</a></li><li><a href="data/struct.Data.html">data::Data</a></li><li><a href="errors/struct.ErrorToResponse.html">errors::ErrorToResponse</a></li><li><a href="settings/struct.Captcha.html">settings::Captcha</a></li><li><a href="settings/struct.Database.html">settings::Database</a></li><li><a href="settings/struct.DatabaseBuilder.html">settings::DatabaseBuilder</a></li><li><a href="settings/struct.Server.html">settings::Server</a></li><li><a href="settings/struct.Settings.html">settings::Settings</a></li></ul><h3 id="Enums">Enums</h3><ul class="enums docblock"><li><a href="errors/enum.ServiceError.html">errors::ServiceError</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="api/v1/auth/fn.is_authenticated.html">api::v1::auth::is_authenticated</a></li><li><a href="api/v1/mcaptcha/fn.get_random.html">api::v1::mcaptcha::get_random</a></li><li><a href="api/v1/fn.services.html">api::v1::services</a></li><li><a href="errors/fn.dup_error.html">errors::dup_error</a></li><li><a href="fn.get_identity_service.html">get_identity_service</a></li><li><a href="fn.get_json_err.html">get_json_err</a></li><li><a href="fn.main.html">main</a></li><li><a href="settings/fn.set_database_url.html">settings::set_database_url</a></li><li><a href="settings/fn.set_from_database_url.html">settings::set_from_database_url</a></li></ul><h3 id="Typedefs">Typedefs</h3><ul class="typedefs docblock"><li><a href="errors/type.ServiceResult.html">errors::ServiceResult</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "guard";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|
@ -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="API documentation for the Rust `is_authenticated` fn in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, is_authenticated"><title>guard::api::v1::auth::is_authenticated - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../guard/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">auth</a></p><script>window.sidebarCurrent = {name: "is_authenticated", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/auth.rs.html#104-111" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">auth</a>::<wbr><a class="fn" href="">is_authenticated</a></span></h1><pre class="rust fn">pub fn is_authenticated(id: &Identity) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a>></pre><div class="docblock"><p>Check if user is authenticated</p>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/auth.rs.html#108-115" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">auth</a>::<wbr><a class="fn" href="">is_authenticated</a></span></h1><pre class="rust fn">pub fn is_authenticated(id: &Identity) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a>></pre><div class="docblock"><p>Check if user is authenticated</p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "guard";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,7 +1,7 @@
|
||||
<!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="API documentation for the Rust `auth` mod in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, auth"><title>guard::api::v1::auth - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../guard/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module auth</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a></p><script>window.sidebarCurrent = {name: "auth", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/auth.rs.html#18-250" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a class="mod" href="">auth</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/auth.rs.html#18-256" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a class="mod" href="">auth</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Login.html" title="guard::api::v1::auth::Login struct">Login</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Password.html" title="guard::api::v1::auth::Password struct">Password</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.Register.html" title="guard::api::v1::auth::Register struct">Register</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.delete_account.html" title="guard::api::v1::auth::delete_account struct">delete_account</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.signin.html" title="guard::api::v1::auth::signin struct">signin</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.signout.html" title="guard::api::v1::auth::signout struct">signout</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.signup.html" title="guard::api::v1::auth::signup struct">signup</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.is_authenticated.html" title="guard::api::v1::auth::is_authenticated fn">is_authenticated</a></td><td class="docblock-short"><p>Check if user is authenticated</p>
|
||||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "guard";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
guard/api/v1/mcaptcha/fn.get_random.html
Normal file
4
guard/api/v1/mcaptcha/fn.get_random.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!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="API documentation for the Rust `get_random` fn in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, get_random"><title>guard::api::v1::mcaptcha::get_random - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../guard/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">mcaptcha</a></p><script>window.sidebarCurrent = {name: "get_random", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#114-126" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">mcaptcha</a>::<wbr><a class="fn" href="">get_random</a></span></h1><pre class="rust fn">fn get_random(len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "guard";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,5 +1,6 @@
|
||||
<!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="API documentation for the Rust `mcaptcha` mod in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, mcaptcha"><title>guard::api::v1::mcaptcha - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../guard/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module mcaptcha</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><p class="location"><a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a></p><script>window.sidebarCurrent = {name: "mcaptcha", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#18-116" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a class="mod" href="">mcaptcha</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Domain.html" title="guard::api::v1::mcaptcha::Domain struct">Domain</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.add_domain.html" title="guard::api::v1::mcaptcha::add_domain struct">add_domain</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.delete_domain.html" title="guard::api::v1::mcaptcha::delete_domain struct">delete_domain</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "guard";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../guard/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Module mcaptcha</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a></p><script>window.sidebarCurrent = {name: "mcaptcha", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#18-176" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a class="mod" href="">mcaptcha</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.Domain.html" title="guard::api::v1::mcaptcha::Domain struct">Domain</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TokenKeyPair.html" title="guard::api::v1::mcaptcha::TokenKeyPair struct">TokenKeyPair</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.TokenName.html" title="guard::api::v1::mcaptcha::TokenName struct">TokenName</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.add_domain.html" title="guard::api::v1::mcaptcha::add_domain struct">add_domain</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="struct" href="struct.delete_domain.html" title="guard::api::v1::mcaptcha::delete_domain struct">delete_domain</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.get_random.html" title="guard::api::v1::mcaptcha::get_random fn">get_random</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "guard";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"struct":[["Domain",""],["add_domain",""],["delete_domain",""]]});
|
||||
initSidebarItems({"fn":[["get_random",""]],"struct":[["Domain",""],["TokenKeyPair",""],["TokenName",""],["add_domain",""],["delete_domain",""]]});
|
124
guard/api/v1/mcaptcha/struct.TokenKeyPair.html
Normal file
124
guard/api/v1/mcaptcha/struct.TokenKeyPair.html
Normal file
@ -0,0 +1,124 @@
|
||||
<!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="API documentation for the Rust `TokenKeyPair` struct in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, TokenKeyPair"><title>guard::api::v1::mcaptcha::TokenKeyPair - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../guard/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct TokenKeyPair</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.key">key</a><a href="#structfield.name">name</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Conv">Conv</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pipe">Pipe</a><a href="#impl-PipeAsRef">PipeAsRef</a><a href="#impl-PipeBorrow">PipeBorrow</a><a href="#impl-PipeDeref">PipeDeref</a><a href="#impl-PipeRef">PipeRef</a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-Tap">Tap</a><a href="#impl-TapAsRef%3CU%3E">TapAsRef<U></a><a href="#impl-TapBorrow%3CU%3E">TapBorrow<U></a><a href="#impl-TapDeref">TapDeref</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">mcaptcha</a></p><script>window.sidebarCurrent = {name: "TokenKeyPair", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#80-83" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">mcaptcha</a>::<wbr><a class="struct" href="">TokenKeyPair</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct TokenKeyPair {
|
||||
pub name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
pub key: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id="impl-Serialize" class="impl"><code class="in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.serialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#79" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenKeyPair.html" title="struct guard::api::v1::mcaptcha::TokenKeyPair">TokenKeyPair</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-Conv" class="impl"><code class="in-band">impl<T> Conv for T</code><a href="#impl-Conv" class="anchor"></a></h3><div class="impl-items"><h4 id="method.conv" class="method hidden"><code>pub fn <a href="#method.conv" class="fnname">conv</a><T>(self) -> T <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code></h4><div class='docblock hidden'><p>Converts <code>self</code> into <code>T</code> using <code>Into<T></code>. <a href="#method.conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-Conv-1" class="impl"><code class="in-band">impl<T> Conv for T</code><a href="#impl-Conv-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.conv-1" class="method hidden"><code>pub fn <a href="#method.conv" class="fnname">conv</a><T>(self) -> T <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code></h4><div class='docblock hidden'><p>Converts <code>self</code> into a target type. <a href="#method.conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-DeserializeOwned" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T <span class="where fmt-newline">where<br> T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></code><a href="#impl-DeserializeOwned" class="anchor"></a><a class="srclink" href="https://docs.rs/serde/1.0.124/src/serde/de/mod.rs.html#603" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-FmtForward" class="impl"><code class="in-band">impl<T> FmtForward for T</code><a href="#impl-FmtForward" class="anchor"></a></h3><div class="impl-items"><h4 id="method.fmt_binary" class="method hidden"><code>pub fn <a href="#method.fmt_binary" class="fnname">fmt_binary</a>(self) -> FmtBinary<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Binary</code> implementation when <code>Debug</code>-formatted.</p>
|
||||
</div><h4 id="method.fmt_display" class="method hidden"><code>pub fn <a href="#method.fmt_display" class="fnname">fmt_display</a>(self) -> FmtDisplay<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Display</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_display">Read more</a></p>
|
||||
</div><h4 id="method.fmt_lower_exp" class="method hidden"><code>pub fn <a href="#method.fmt_lower_exp" class="fnname">fmt_lower_exp</a>(self) -> FmtLowerExp<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>LowerExp</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_lower_exp">Read more</a></p>
|
||||
</div><h4 id="method.fmt_lower_hex" class="method hidden"><code>pub fn <a href="#method.fmt_lower_hex" class="fnname">fmt_lower_hex</a>(self) -> FmtLowerHex<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>LowerHex</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_lower_hex">Read more</a></p>
|
||||
</div><h4 id="method.fmt_octal" class="method hidden"><code>pub fn <a href="#method.fmt_octal" class="fnname">fmt_octal</a>(self) -> FmtOctal<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Octal</code> implementation when <code>Debug</code>-formatted.</p>
|
||||
</div><h4 id="method.fmt_pointer" class="method hidden"><code>pub fn <a href="#method.fmt_pointer" class="fnname">fmt_pointer</a>(self) -> FmtPointer<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html" title="trait core::fmt::Pointer">Pointer</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Pointer</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_pointer">Read more</a></p>
|
||||
</div><h4 id="method.fmt_upper_exp" class="method hidden"><code>pub fn <a href="#method.fmt_upper_exp" class="fnname">fmt_upper_exp</a>(self) -> FmtUpperExp<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>UpperExp</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_upper_exp">Read more</a></p>
|
||||
</div><h4 id="method.fmt_upper_hex" class="method hidden"><code>pub fn <a href="#method.fmt_upper_hex" class="fnname">fmt_upper_hex</a>(self) -> FmtUpperHex<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>UpperHex</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_upper_hex">Read more</a></p>
|
||||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#552-556" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-555" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Instrument" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html" title="trait tracing_futures::Instrument">Instrument</a> for T</code><a href="#impl-Instrument" class="anchor"></a><a class="srclink" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#273" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.instrument" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#154-156" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.instrument">Read more</a></p>
|
||||
</div><h4 id="method.in_current_span" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#191-193" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the <a href="https://docs.rs/tracing/latest/tracing/span/struct.Span.html#method.current">current</a> <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||||
</div></div><h3 id="impl-Instrument-1" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</code><a href="#impl-Instrument-1" class="anchor"></a><a class="srclink" href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.instrument-1" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#38-40" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></p>
|
||||
</div><h4 id="method.in_current_span-1" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#74-76" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the <a href="../struct.Span.html#method.current">current</a> <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#541-548" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-547" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Pipe" class="impl"><code class="in-band">impl<T> Pipe for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Pipe" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe" class="method hidden"><code>pub fn <a href="#method.pipe" class="fnname">pipe</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -> R) -> R</code></h4><div class='docblock hidden'><p>Pipes by value. This is generally the method you want to use. <a href="#method.pipe">Read more</a></p>
|
||||
</div><h4 id="method.pipe_ref" class="method hidden"><code>pub fn <a href="#method.pipe_ref" class="fnname">pipe_ref</a><'a, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code> and passes that borrow into the pipe function. <a href="#method.pipe_ref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_ref_mut" class="method hidden"><code>pub fn <a href="#method.pipe_ref_mut" class="fnname">pipe_ref_mut</a><'a, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>Self) -> R<br>) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code> and passes that borrow into the pipe function. <a href="#method.pipe_ref_mut">Read more</a></p>
|
||||
</div><h4 id="method.pipe_borrow" class="method hidden"><code>pub fn <a href="#method.pipe_borrow" class="fnname">pipe_borrow</a><'a, B, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>B) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code>, then passes <code>self.borrow()</code> into the pipe function. <a href="#method.pipe_borrow">Read more</a></p>
|
||||
</div><h4 id="method.pipe_borrow_mut" class="method hidden"><code>pub fn <a href="#method.pipe_borrow_mut" class="fnname">pipe_borrow_mut</a><'a, B, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>B) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code>, then passes <code>self.borrow_mut()</code> into the pipe
|
||||
function. <a href="#method.pipe_borrow_mut">Read more</a></p>
|
||||
</div><h4 id="method.pipe_as_ref" class="method hidden"><code>pub fn <a href="#method.pipe_as_ref" class="fnname">pipe_as_ref</a><'a, U, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>U) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><U>,<br> U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code>, then passes <code>self.as_ref()</code> into the pipe function.</p>
|
||||
</div><h4 id="method.pipe_as_mut" class="method hidden"><code>pub fn <a href="#method.pipe_as_mut" class="fnname">pipe_as_mut</a><'a, U, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>U) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><U>,<br> U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code>, then passes <code>self.as_mut()</code> into the pipe
|
||||
function. <a href="#method.pipe_as_mut">Read more</a></p>
|
||||
</div><h4 id="method.pipe_deref" class="method hidden"><code>pub fn <a href="#method.pipe_deref" class="fnname">pipe_deref</a><'a, T, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code>, then passes <code>self.deref()</code> into the pipe function.</p>
|
||||
</div><h4 id="method.pipe_deref_mut" class="method hidden"><code>pub fn <a href="#method.pipe_deref_mut" class="fnname">pipe_deref_mut</a><'a, T, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code>, then passes <code>self.deref_mut()</code> into the pipe
|
||||
function. <a href="#method.pipe_deref_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-Pipe-1" class="impl"><code class="in-band">impl<T> Pipe for T</code><a href="#impl-Pipe-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe-1" class="method hidden"><code>pub fn <a href="#method.pipe" class="fnname">pipe</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -> R) -> R</code></h4><div class='docblock hidden'><p>Pipes a value into a function that cannot ordinarily be called in suffix
|
||||
position. <a href="#method.pipe">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeAsRef" class="impl"><code class="in-band">impl<T> PipeAsRef for T</code><a href="#impl-PipeAsRef" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_as_ref-1" class="method hidden"><code>pub fn <a href="#method.pipe_as_ref" class="fnname">pipe_as_ref</a><'a, T, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait borrow into a function that cannot normally be called in
|
||||
suffix position. <a href="#method.pipe_as_ref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_as_mut-1" class="method hidden"><code>pub fn <a href="#method.pipe_as_mut" class="fnname">pipe_as_mut</a><'a, T, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait mutable borrow into a function that cannot normally be
|
||||
called in suffix position. <a href="#method.pipe_as_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeBorrow" class="impl"><code class="in-band">impl<T> PipeBorrow for T</code><a href="#impl-PipeBorrow" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_borrow-1" class="method hidden"><code>pub fn <a href="#method.pipe_borrow" class="fnname">pipe_borrow</a><'a, T, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait borrow into a function that cannot normally be called in
|
||||
suffix position. <a href="#method.pipe_borrow">Read more</a></p>
|
||||
</div><h4 id="method.pipe_borrow_mut-1" class="method hidden"><code>pub fn <a href="#method.pipe_borrow_mut" class="fnname">pipe_borrow_mut</a><'a, T, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait mutable borrow into a function that cannot normally be
|
||||
called in suffix position. <a href="#method.pipe_borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeDeref" class="impl"><code class="in-band">impl<T> PipeDeref for T</code><a href="#impl-PipeDeref" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_deref-1" class="method hidden"><code>pub fn <a href="#method.pipe_deref" class="fnname">pipe_deref</a><'a, R>(<br> &'a self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&'a Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a dereference into a function that cannot normally be called in
|
||||
suffix position. <a href="#method.pipe_deref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_deref_mut-1" class="method hidden"><code>pub fn <a href="#method.pipe_deref_mut" class="fnname">pipe_deref_mut</a><'a, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&'a mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a mutable dereference into a function that cannot normally be
|
||||
called in suffix position. <a href="#method.pipe_deref_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeRef" class="impl"><code class="in-band">impl<T> PipeRef for T</code><a href="#impl-PipeRef" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_ref-1" class="method hidden"><code>pub fn <a href="#method.pipe_ref" class="fnname">pipe_ref</a><'a, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a reference into a function that cannot ordinarily be called in
|
||||
suffix position. <a href="#method.pipe_ref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_mut" class="method hidden"><code>pub fn <a href="#method.pipe_mut" class="fnname">pipe_mut</a><'a, R>(&'a mut self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a mutable reference into a function that cannot ordinarily be
|
||||
called in suffix position. <a href="#method.pipe_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-Same%3CT%3E" class="impl"><code class="in-band">impl<T> Same<T> for T</code><a href="#impl-Same%3CT%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="associatedtype.Output" class="type"><code>type <a href="#associatedtype.Output" class="type">Output</a> = T</code></h4><div class='docblock'><p>Should always be <code>Self</code></p>
|
||||
</div></div><h3 id="impl-Tap" class="impl"><code class="in-band">impl<T> Tap for T</code><a href="#impl-Tap" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap" class="method hidden"><code>pub fn <a href="#method.tap" class="fnname">tap</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Immutable access to a value. <a href="#method.tap">Read more</a></p>
|
||||
</div><h4 id="method.tap_mut" class="method hidden"><code>pub fn <a href="#method.tap_mut" class="fnname">tap_mut</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Mutable access to a value. <a href="#method.tap_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow" class="method hidden"><code>pub fn <a href="#method.tap_borrow" class="fnname">tap_borrow</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Immutable access to the <code>Borrow<B></code> of a value. <a href="#method.tap_borrow">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_mut" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut" class="fnname">tap_borrow_mut</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Mutable access to the <code>BorrowMut<B></code> of a value. <a href="#method.tap_borrow_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref" class="method hidden"><code>pub fn <a href="#method.tap_ref" class="fnname">tap_ref</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Immutable access to the <code>AsRef<R></code> view of a value. <a href="#method.tap_ref">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref_mut" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut" class="fnname">tap_ref_mut</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Mutable access to the <code>AsMut<R></code> view of a value. <a href="#method.tap_ref_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref" class="method hidden"><code>pub fn <a href="#method.tap_deref" class="fnname">tap_deref</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Immutable access to the <code>Deref::Target</code> of a value. <a href="#method.tap_deref">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref_mut" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut" class="fnname">tap_deref_mut</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Mutable access to the <code>Deref::Target</code> of a value. <a href="#method.tap_deref_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_dbg" class="method hidden"><code>pub fn <a href="#method.tap_dbg" class="fnname">tap_dbg</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Calls <code>.tap()</code> only in debug builds, and is erased in release builds.</p>
|
||||
</div><h4 id="method.tap_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_mut_dbg" class="fnname">tap_mut_dbg</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Calls <code>.tap_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_mut_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_dbg" class="method hidden"><code>pub fn <a href="#method.tap_borrow_dbg" class="fnname">tap_borrow_dbg</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_borrow()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_borrow_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut_dbg" class="fnname">tap_borrow_mut_dbg</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_borrow_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_borrow_mut_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref_dbg" class="method hidden"><code>pub fn <a href="#method.tap_ref_dbg" class="fnname">tap_ref_dbg</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_ref()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_ref_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut_dbg" class="fnname">tap_ref_mut_dbg</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_ref_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_ref_mut_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref_dbg" class="method hidden"><code>pub fn <a href="#method.tap_deref_dbg" class="fnname">tap_deref_dbg</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_deref()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_deref_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut_dbg" class="fnname">tap_deref_mut_dbg</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_deref_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_deref_mut_dbg">Read more</a></p>
|
||||
</div></div><h3 id="impl-Tap-1" class="impl"><code class="in-band">impl<T> Tap for T</code><a href="#impl-Tap-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap-1" class="method hidden"><code>pub fn <a href="#method.tap" class="fnname">tap</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Provides immutable access for inspection. <a href="#method.tap">Read more</a></p>
|
||||
</div><h4 id="method.tap_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_dbg" class="fnname">tap_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_mut" class="fnname">tap_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Provides mutable access for modification. <a href="#method.tap_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_mut_dbg" class="fnname">tap_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_mut</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div></div><h3 id="impl-TapAsRef%3CU%3E" class="impl"><code class="in-band">impl<T, U> TapAsRef<U> for T <span class="where fmt-newline">where<br> U: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-TapAsRef%3CU%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap_ref-1" class="method hidden"><code>pub fn <a href="#method.tap_ref" class="fnname">tap_ref</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides immutable access to the reference for inspection.</p>
|
||||
</div><h4 id="method.tap_ref_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_ref_dbg" class="fnname">tap_ref_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_ref</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_ref_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut" class="fnname">tap_ref_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides mutable access to the reference for modification.</p>
|
||||
</div><h4 id="method.tap_ref_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut_dbg" class="fnname">tap_ref_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_ref_mut</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div></div><h3 id="impl-TapBorrow%3CU%3E" class="impl"><code class="in-band">impl<T, U> TapBorrow<U> for T <span class="where fmt-newline">where<br> U: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-TapBorrow%3CU%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap_borrow-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow" class="fnname">tap_borrow</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides immutable access to the borrow for inspection. <a href="#method.tap_borrow">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow_dbg" class="fnname">tap_borrow_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_borrow</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_borrow_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut" class="fnname">tap_borrow_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides mutable access to the borrow for modification.</p>
|
||||
</div><h4 id="method.tap_borrow_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut_dbg" class="fnname">tap_borrow_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_borrow_mut</code> in debug builds, and does nothing in release
|
||||
builds. <a href="#method.tap_borrow_mut_dbg">Read more</a></p>
|
||||
</div></div><h3 id="impl-TapDeref" class="impl"><code class="in-band">impl<T> TapDeref for T</code><a href="#impl-TapDeref" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap_deref-1" class="method hidden"><code>pub fn <a href="#method.tap_deref" class="fnname">tap_deref</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Immutably dereferences <code>self</code> for inspection.</p>
|
||||
</div><h4 id="method.tap_deref_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_deref_dbg" class="fnname">tap_deref_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_deref</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_deref_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut" class="fnname">tap_deref_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Mutably dereferences <code>self</code> for modification.</p>
|
||||
</div><h4 id="method.tap_deref_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut_dbg" class="fnname">tap_deref_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_deref_mut</code> in debug builds, and does nothing in release
|
||||
builds. <a href="#method.tap_deref_mut_dbg">Read more</a></p>
|
||||
</div></div><h3 id="impl-ToOwned" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href="#impl-ToOwned" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Owned" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id="method.to_owned" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id="method.clone_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id="impl-TryConv" class="impl"><code class="in-band">impl<T> TryConv for T</code><a href="#impl-TryConv" class="anchor"></a></h3><div class="impl-items"><h4 id="method.try_conv" class="method hidden"><code>pub fn <a href="#method.try_conv" class="fnname">try_conv</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" title="type core::convert::TryInto::Error">Error</a>> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><T>, </span></code></h4><div class='docblock hidden'><p>Attempts to convert <code>self</code> into <code>T</code> using <code>TryInto<T></code>. <a href="#method.try_conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-TryConv-1" class="impl"><code class="in-band">impl<T> TryConv for T</code><a href="#impl-TryConv-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.try_conv-1" class="method hidden"><code>pub fn <a href="#method.try_conv" class="fnname">try_conv</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" title="type core::convert::TryInto::Error">Error</a>> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><T>, </span></code></h4><div class='docblock hidden'><p>Attempts to convert <code>self</code> into a target type. <a href="#method.try_conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#589-598" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#595-597" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#575-584" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#581-583" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-VZip%3CV%3E" class="impl"><code class="in-band">impl<V, T> VZip<V> for T <span class="where fmt-newline">where<br> V: MultiLane<T>, </span></code><a href="#impl-VZip%3CV%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="method.vzip" class="method hidden"><code>pub fn <a href="#method.vzip" class="fnname">vzip</a>(self) -> V</code></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "guard";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
123
guard/api/v1/mcaptcha/struct.TokenName.html
Normal file
123
guard/api/v1/mcaptcha/struct.TokenName.html
Normal file
@ -0,0 +1,123 @@
|
||||
<!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="API documentation for the Rust `TokenName` struct in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, TokenName"><title>guard::api::v1::mcaptcha::TokenName - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../../guard/index.html'><div class='logo-container rust-logo'><img src='../../../../rust-logo.png' alt='logo'></div></a><p class="location">Struct TokenName</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.name">name</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Conv">Conv</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pipe">Pipe</a><a href="#impl-PipeAsRef">PipeAsRef</a><a href="#impl-PipeBorrow">PipeBorrow</a><a href="#impl-PipeDeref">PipeDeref</a><a href="#impl-PipeRef">PipeRef</a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-Tap">Tap</a><a href="#impl-TapAsRef%3CU%3E">TapAsRef<U></a><a href="#impl-TapBorrow%3CU%3E">TapBorrow<U></a><a href="#impl-TapDeref">TapDeref</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">mcaptcha</a></p><script>window.sidebarCurrent = {name: "TokenName", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#75-77" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../../../index.html">guard</a>::<wbr><a href="../../index.html">api</a>::<wbr><a href="../index.html">v1</a>::<wbr><a href="index.html">mcaptcha</a>::<wbr><a class="struct" href="">TokenName</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct TokenName {
|
||||
pub name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.name" class="structfield small-section-header"><a href="#structfield.name" class="anchor field"></a><code>name: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id="impl-Serialize" class="impl"><code class="in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.serialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class="srclink" href="../../../../src/guard/api/v1/mcaptcha.rs.html#74" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../../../guard/api/v1/mcaptcha/struct.TokenName.html" title="struct guard::api::v1::mcaptcha::TokenName">TokenName</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-Conv" class="impl"><code class="in-band">impl<T> Conv for T</code><a href="#impl-Conv" class="anchor"></a></h3><div class="impl-items"><h4 id="method.conv" class="method hidden"><code>pub fn <a href="#method.conv" class="fnname">conv</a><T>(self) -> T <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code></h4><div class='docblock hidden'><p>Converts <code>self</code> into <code>T</code> using <code>Into<T></code>. <a href="#method.conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-Conv-1" class="impl"><code class="in-band">impl<T> Conv for T</code><a href="#impl-Conv-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.conv-1" class="method hidden"><code>pub fn <a href="#method.conv" class="fnname">conv</a><T>(self) -> T <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code></h4><div class='docblock hidden'><p>Converts <code>self</code> into a target type. <a href="#method.conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-DeserializeOwned" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T <span class="where fmt-newline">where<br> T: for<'de> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></code><a href="#impl-DeserializeOwned" class="anchor"></a><a class="srclink" href="https://docs.rs/serde/1.0.124/src/serde/de/mod.rs.html#603" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-FmtForward" class="impl"><code class="in-band">impl<T> FmtForward for T</code><a href="#impl-FmtForward" class="anchor"></a></h3><div class="impl-items"><h4 id="method.fmt_binary" class="method hidden"><code>pub fn <a href="#method.fmt_binary" class="fnname">fmt_binary</a>(self) -> FmtBinary<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Binary</code> implementation when <code>Debug</code>-formatted.</p>
|
||||
</div><h4 id="method.fmt_display" class="method hidden"><code>pub fn <a href="#method.fmt_display" class="fnname">fmt_display</a>(self) -> FmtDisplay<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Display</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_display">Read more</a></p>
|
||||
</div><h4 id="method.fmt_lower_exp" class="method hidden"><code>pub fn <a href="#method.fmt_lower_exp" class="fnname">fmt_lower_exp</a>(self) -> FmtLowerExp<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>LowerExp</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_lower_exp">Read more</a></p>
|
||||
</div><h4 id="method.fmt_lower_hex" class="method hidden"><code>pub fn <a href="#method.fmt_lower_hex" class="fnname">fmt_lower_hex</a>(self) -> FmtLowerHex<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>LowerHex</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_lower_hex">Read more</a></p>
|
||||
</div><h4 id="method.fmt_octal" class="method hidden"><code>pub fn <a href="#method.fmt_octal" class="fnname">fmt_octal</a>(self) -> FmtOctal<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Octal</code> implementation when <code>Debug</code>-formatted.</p>
|
||||
</div><h4 id="method.fmt_pointer" class="method hidden"><code>pub fn <a href="#method.fmt_pointer" class="fnname">fmt_pointer</a>(self) -> FmtPointer<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html" title="trait core::fmt::Pointer">Pointer</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>Pointer</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_pointer">Read more</a></p>
|
||||
</div><h4 id="method.fmt_upper_exp" class="method hidden"><code>pub fn <a href="#method.fmt_upper_exp" class="fnname">fmt_upper_exp</a>(self) -> FmtUpperExp<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>UpperExp</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_upper_exp">Read more</a></p>
|
||||
</div><h4 id="method.fmt_upper_hex" class="method hidden"><code>pub fn <a href="#method.fmt_upper_hex" class="fnname">fmt_upper_hex</a>(self) -> FmtUpperHex<Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a>, </span></code></h4><div class='docblock hidden'><p>Causes <code>self</code> to use its <code>UpperHex</code> implementation when
|
||||
<code>Debug</code>-formatted. <a href="#method.fmt_upper_hex">Read more</a></p>
|
||||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#552-556" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#553-555" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Instrument" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html" title="trait tracing_futures::Instrument">Instrument</a> for T</code><a href="#impl-Instrument" class="anchor"></a><a class="srclink" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#273" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.instrument" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#154-156" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.instrument">Read more</a></p>
|
||||
</div><h4 id="method.in_current_span" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing-futures/0.2.5/src/tracing_futures/lib.rs.html#191-193" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the <a href="https://docs.rs/tracing/latest/tracing/span/struct.Span.html#method.current">current</a> <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing-futures/0.2.5/tracing_futures/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||||
</div></div><h3 id="impl-Instrument-1" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</code><a href="#impl-Instrument-1" class="anchor"></a><a class="srclink" href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.instrument-1" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#38-40" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></p>
|
||||
</div><h4 id="method.in_current_span-1" class="method hidden"><code>pub fn <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -> <a class="struct" href="https://docs.rs/tracing/0.1.25/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><a class="srclink" href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#74-76" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Instruments this type with the <a href="../struct.Span.html#method.current">current</a> <code>Span</code>, returning an
|
||||
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></p>
|
||||
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#541-548" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-547" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-Pipe" class="impl"><code class="in-band">impl<T> Pipe for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Pipe" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe" class="method hidden"><code>pub fn <a href="#method.pipe" class="fnname">pipe</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -> R) -> R</code></h4><div class='docblock hidden'><p>Pipes by value. This is generally the method you want to use. <a href="#method.pipe">Read more</a></p>
|
||||
</div><h4 id="method.pipe_ref" class="method hidden"><code>pub fn <a href="#method.pipe_ref" class="fnname">pipe_ref</a><'a, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code> and passes that borrow into the pipe function. <a href="#method.pipe_ref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_ref_mut" class="method hidden"><code>pub fn <a href="#method.pipe_ref_mut" class="fnname">pipe_ref_mut</a><'a, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>Self) -> R<br>) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code> and passes that borrow into the pipe function. <a href="#method.pipe_ref_mut">Read more</a></p>
|
||||
</div><h4 id="method.pipe_borrow" class="method hidden"><code>pub fn <a href="#method.pipe_borrow" class="fnname">pipe_borrow</a><'a, B, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>B) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code>, then passes <code>self.borrow()</code> into the pipe function. <a href="#method.pipe_borrow">Read more</a></p>
|
||||
</div><h4 id="method.pipe_borrow_mut" class="method hidden"><code>pub fn <a href="#method.pipe_borrow_mut" class="fnname">pipe_borrow_mut</a><'a, B, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>B) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code>, then passes <code>self.borrow_mut()</code> into the pipe
|
||||
function. <a href="#method.pipe_borrow_mut">Read more</a></p>
|
||||
</div><h4 id="method.pipe_as_ref" class="method hidden"><code>pub fn <a href="#method.pipe_as_ref" class="fnname">pipe_as_ref</a><'a, U, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>U) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><U>,<br> U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code>, then passes <code>self.as_ref()</code> into the pipe function.</p>
|
||||
</div><h4 id="method.pipe_as_mut" class="method hidden"><code>pub fn <a href="#method.pipe_as_mut" class="fnname">pipe_as_mut</a><'a, U, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>U) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><U>,<br> U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code>, then passes <code>self.as_mut()</code> into the pipe
|
||||
function. <a href="#method.pipe_as_mut">Read more</a></p>
|
||||
</div><h4 id="method.pipe_deref" class="method hidden"><code>pub fn <a href="#method.pipe_deref" class="fnname">pipe_deref</a><'a, T, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Borrows <code>self</code>, then passes <code>self.deref()</code> into the pipe function.</p>
|
||||
</div><h4 id="method.pipe_deref_mut" class="method hidden"><code>pub fn <a href="#method.pipe_deref_mut" class="fnname">pipe_deref_mut</a><'a, T, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Mutably borrows <code>self</code>, then passes <code>self.deref_mut()</code> into the pipe
|
||||
function. <a href="#method.pipe_deref_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-Pipe-1" class="impl"><code class="in-band">impl<T> Pipe for T</code><a href="#impl-Pipe-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe-1" class="method hidden"><code>pub fn <a href="#method.pipe" class="fnname">pipe</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -> R) -> R</code></h4><div class='docblock hidden'><p>Pipes a value into a function that cannot ordinarily be called in suffix
|
||||
position. <a href="#method.pipe">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeAsRef" class="impl"><code class="in-band">impl<T> PipeAsRef for T</code><a href="#impl-PipeAsRef" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_as_ref-1" class="method hidden"><code>pub fn <a href="#method.pipe_as_ref" class="fnname">pipe_as_ref</a><'a, T, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait borrow into a function that cannot normally be called in
|
||||
suffix position. <a href="#method.pipe_as_ref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_as_mut-1" class="method hidden"><code>pub fn <a href="#method.pipe_as_mut" class="fnname">pipe_as_mut</a><'a, T, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait mutable borrow into a function that cannot normally be
|
||||
called in suffix position. <a href="#method.pipe_as_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeBorrow" class="impl"><code class="in-band">impl<T> PipeBorrow for T</code><a href="#impl-PipeBorrow" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_borrow-1" class="method hidden"><code>pub fn <a href="#method.pipe_borrow" class="fnname">pipe_borrow</a><'a, T, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>T) -> R) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait borrow into a function that cannot normally be called in
|
||||
suffix position. <a href="#method.pipe_borrow">Read more</a></p>
|
||||
</div><h4 id="method.pipe_borrow_mut-1" class="method hidden"><code>pub fn <a href="#method.pipe_borrow_mut" class="fnname">pipe_borrow_mut</a><'a, T, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>T) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T>,<br> T: 'a,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a trait mutable borrow into a function that cannot normally be
|
||||
called in suffix position. <a href="#method.pipe_borrow_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeDeref" class="impl"><code class="in-band">impl<T> PipeDeref for T</code><a href="#impl-PipeDeref" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_deref-1" class="method hidden"><code>pub fn <a href="#method.pipe_deref" class="fnname">pipe_deref</a><'a, R>(<br> &'a self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&'a Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a dereference into a function that cannot normally be called in
|
||||
suffix position. <a href="#method.pipe_deref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_deref_mut-1" class="method hidden"><code>pub fn <a href="#method.pipe_deref_mut" class="fnname">pipe_deref_mut</a><'a, R>(<br> &'a mut self, <br> func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&'a mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R<br>) -> R <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a mutable dereference into a function that cannot normally be
|
||||
called in suffix position. <a href="#method.pipe_deref_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-PipeRef" class="impl"><code class="in-band">impl<T> PipeRef for T</code><a href="#impl-PipeRef" class="anchor"></a></h3><div class="impl-items"><h4 id="method.pipe_ref-1" class="method hidden"><code>pub fn <a href="#method.pipe_ref" class="fnname">pipe_ref</a><'a, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a reference into a function that cannot ordinarily be called in
|
||||
suffix position. <a href="#method.pipe_ref">Read more</a></p>
|
||||
</div><h4 id="method.pipe_mut" class="method hidden"><code>pub fn <a href="#method.pipe_mut" class="fnname">pipe_mut</a><'a, R>(&'a mut self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>Self) -> R) -> R <span class="where fmt-newline">where<br> R: 'a, </span></code></h4><div class='docblock hidden'><p>Pipes a mutable reference into a function that cannot ordinarily be
|
||||
called in suffix position. <a href="#method.pipe_mut">Read more</a></p>
|
||||
</div></div><h3 id="impl-Same%3CT%3E" class="impl"><code class="in-band">impl<T> Same<T> for T</code><a href="#impl-Same%3CT%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="associatedtype.Output" class="type"><code>type <a href="#associatedtype.Output" class="type">Output</a> = T</code></h4><div class='docblock'><p>Should always be <code>Self</code></p>
|
||||
</div></div><h3 id="impl-Tap" class="impl"><code class="in-band">impl<T> Tap for T</code><a href="#impl-Tap" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap" class="method hidden"><code>pub fn <a href="#method.tap" class="fnname">tap</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Immutable access to a value. <a href="#method.tap">Read more</a></p>
|
||||
</div><h4 id="method.tap_mut" class="method hidden"><code>pub fn <a href="#method.tap_mut" class="fnname">tap_mut</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Mutable access to a value. <a href="#method.tap_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow" class="method hidden"><code>pub fn <a href="#method.tap_borrow" class="fnname">tap_borrow</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Immutable access to the <code>Borrow<B></code> of a value. <a href="#method.tap_borrow">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_mut" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut" class="fnname">tap_borrow_mut</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Mutable access to the <code>BorrowMut<B></code> of a value. <a href="#method.tap_borrow_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref" class="method hidden"><code>pub fn <a href="#method.tap_ref" class="fnname">tap_ref</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Immutable access to the <code>AsRef<R></code> view of a value. <a href="#method.tap_ref">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref_mut" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut" class="fnname">tap_ref_mut</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Mutable access to the <code>AsMut<R></code> view of a value. <a href="#method.tap_ref_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref" class="method hidden"><code>pub fn <a href="#method.tap_deref" class="fnname">tap_deref</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Immutable access to the <code>Deref::Target</code> of a value. <a href="#method.tap_deref">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref_mut" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut" class="fnname">tap_deref_mut</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Mutable access to the <code>Deref::Target</code> of a value. <a href="#method.tap_deref_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_dbg" class="method hidden"><code>pub fn <a href="#method.tap_dbg" class="fnname">tap_dbg</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Calls <code>.tap()</code> only in debug builds, and is erased in release builds.</p>
|
||||
</div><h4 id="method.tap_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_mut_dbg" class="fnname">tap_mut_dbg</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self)) -> Self</code></h4><div class='docblock hidden'><p>Calls <code>.tap_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_mut_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_dbg" class="method hidden"><code>pub fn <a href="#method.tap_borrow_dbg" class="fnname">tap_borrow_dbg</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_borrow()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_borrow_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut_dbg" class="fnname">tap_borrow_mut_dbg</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,<br> B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_borrow_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_borrow_mut_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref_dbg" class="method hidden"><code>pub fn <a href="#method.tap_ref_dbg" class="fnname">tap_ref_dbg</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_ref()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_ref_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_ref_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut_dbg" class="fnname">tap_ref_mut_dbg</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,<br> R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_ref_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_ref_mut_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref_dbg" class="method hidden"><code>pub fn <a href="#method.tap_deref_dbg" class="fnname">tap_deref_dbg</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_deref()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_deref_dbg">Read more</a></p>
|
||||
</div><h4 id="method.tap_deref_mut_dbg" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut_dbg" class="fnname">tap_deref_mut_dbg</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code></h4><div class='docblock hidden'><p>Calls <code>.tap_deref_mut()</code> only in debug builds, and is erased in release
|
||||
builds. <a href="#method.tap_deref_mut_dbg">Read more</a></p>
|
||||
</div></div><h3 id="impl-Tap-1" class="impl"><code class="in-band">impl<T> Tap for T</code><a href="#impl-Tap-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap-1" class="method hidden"><code>pub fn <a href="#method.tap" class="fnname">tap</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Provides immutable access for inspection. <a href="#method.tap">Read more</a></p>
|
||||
</div><h4 id="method.tap_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_dbg" class="fnname">tap_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_mut" class="fnname">tap_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Provides mutable access for modification. <a href="#method.tap_mut">Read more</a></p>
|
||||
</div><h4 id="method.tap_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_mut_dbg" class="fnname">tap_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_mut</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div></div><h3 id="impl-TapAsRef%3CU%3E" class="impl"><code class="in-band">impl<T, U> TapAsRef<U> for T <span class="where fmt-newline">where<br> U: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-TapAsRef%3CU%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap_ref-1" class="method hidden"><code>pub fn <a href="#method.tap_ref" class="fnname">tap_ref</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides immutable access to the reference for inspection.</p>
|
||||
</div><h4 id="method.tap_ref_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_ref_dbg" class="fnname">tap_ref_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_ref</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_ref_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut" class="fnname">tap_ref_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides mutable access to the reference for modification.</p>
|
||||
</div><h4 id="method.tap_ref_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_ref_mut_dbg" class="fnname">tap_ref_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_ref_mut</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div></div><h3 id="impl-TapBorrow%3CU%3E" class="impl"><code class="in-band">impl<T, U> TapBorrow<U> for T <span class="where fmt-newline">where<br> U: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-TapBorrow%3CU%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap_borrow-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow" class="fnname">tap_borrow</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides immutable access to the borrow for inspection. <a href="#method.tap_borrow">Read more</a></p>
|
||||
</div><h4 id="method.tap_borrow_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow_dbg" class="fnname">tap_borrow_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_borrow</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_borrow_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut" class="fnname">tap_borrow_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Provides mutable access to the borrow for modification.</p>
|
||||
</div><h4 id="method.tap_borrow_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_borrow_mut_dbg" class="fnname">tap_borrow_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_borrow_mut</code> in debug builds, and does nothing in release
|
||||
builds. <a href="#method.tap_borrow_mut_dbg">Read more</a></p>
|
||||
</div></div><h3 id="impl-TapDeref" class="impl"><code class="in-band">impl<T> TapDeref for T</code><a href="#impl-TapDeref" class="anchor"></a></h3><div class="impl-items"><h4 id="method.tap_deref-1" class="method hidden"><code>pub fn <a href="#method.tap_deref" class="fnname">tap_deref</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Immutably dereferences <code>self</code> for inspection.</p>
|
||||
</div><h4 id="method.tap_deref_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_deref_dbg" class="fnname">tap_deref_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_deref</code> in debug builds, and does nothing in release builds.</p>
|
||||
</div><h4 id="method.tap_deref_mut-1" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut" class="fnname">tap_deref_mut</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Mutably dereferences <code>self</code> for modification.</p>
|
||||
</div><h4 id="method.tap_deref_mut_dbg-1" class="method hidden"><code>pub fn <a href="#method.tap_deref_mut_dbg" class="fnname">tap_deref_mut_dbg</a><F, R>(self, func: F) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>) -> R, </span></code></h4><div class='docblock hidden'><p>Calls <code>tap_deref_mut</code> in debug builds, and does nothing in release
|
||||
builds. <a href="#method.tap_deref_mut_dbg">Read more</a></p>
|
||||
</div></div><h3 id="impl-ToOwned" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href="#impl-ToOwned" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Owned" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||||
</div><h4 id="method.to_owned" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||||
</div><h4 id="method.clone_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||||
</div></div><h3 id="impl-TryConv" class="impl"><code class="in-band">impl<T> TryConv for T</code><a href="#impl-TryConv" class="anchor"></a></h3><div class="impl-items"><h4 id="method.try_conv" class="method hidden"><code>pub fn <a href="#method.try_conv" class="fnname">try_conv</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" title="type core::convert::TryInto::Error">Error</a>> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><T>, </span></code></h4><div class='docblock hidden'><p>Attempts to convert <code>self</code> into <code>T</code> using <code>TryInto<T></code>. <a href="#method.try_conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-TryConv-1" class="impl"><code class="in-band">impl<T> TryConv for T</code><a href="#impl-TryConv-1" class="anchor"></a></h3><div class="impl-items"><h4 id="method.try_conv-1" class="method hidden"><code>pub fn <a href="#method.try_conv" class="fnname">try_conv</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" title="type core::convert::TryInto::Error">Error</a>> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><T>, </span></code></h4><div class='docblock hidden'><p>Attempts to convert <code>self</code> into a target type. <a href="#method.try_conv">Read more</a></p>
|
||||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#589-598" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#595-597" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#575-584" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#581-583" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-VZip%3CV%3E" class="impl"><code class="in-band">impl<V, T> VZip<V> for T <span class="where fmt-newline">where<br> V: MultiLane<T>, </span></code><a href="#impl-VZip%3CV%3E" class="anchor"></a></h3><div class="impl-items"><h4 id="method.vzip" class="method hidden"><code>pub fn <a href="#method.vzip" class="fnname">vzip</a>(self) -> V</code></h4></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../../../";window.currentCrate = "guard";</script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -1,29 +1,31 @@
|
||||
<!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="API documentation for the Rust `ServiceError` enum in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, ServiceError"><title>guard::errors::ServiceError - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../guard/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Enum ServiceError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.AuthorizationRequired">AuthorizationRequired</a><a href="#variant.BlacklistError">BlacklistError</a><a href="#variant.InternalServerError">InternalServerError</a><a href="#variant.NotAUrl">NotAUrl</a><a href="#variant.NotAnEmail">NotAnEmail</a><a href="#variant.PasswordTooLong">PasswordTooLong</a><a href="#variant.PasswordTooShort">PasswordTooShort</a><a href="#variant.ProfainityError">ProfainityError</a><a href="#variant.UsernameCaseMappedError">UsernameCaseMappedError</a><a href="#variant.UsernameNotFound">UsernameNotFound</a><a href="#variant.UsernameTaken">UsernameTaken</a><a href="#variant.WrongPassword">WrongPassword</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-Error">Error</a><a href="#impl-From%3CCredsError%3E">From<CredsError></a><a href="#impl-From%3CError%3E">From<Error></a><a href="#impl-From%3CParseError%3E">From<ParseError></a><a href="#impl-From%3CValidationErrors%3E">From<ValidationErrors></a><a href="#impl-PartialEq%3CServiceError%3E">PartialEq<ServiceError></a><a href="#impl-ResponseError">ResponseError</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Conv">Conv</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pipe">Pipe</a><a href="#impl-PipeAsRef">PipeAsRef</a><a href="#impl-PipeBorrow">PipeBorrow</a><a href="#impl-PipeDeref">PipeDeref</a><a href="#impl-PipeRef">PipeRef</a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-Tap">Tap</a><a href="#impl-TapAsRef%3CU%3E">TapAsRef<U></a><a href="#impl-TapBorrow%3CU%3E">TapBorrow<U></a><a href="#impl-TapDeref">TapDeref</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a></p><script>window.sidebarCurrent = {name: "ServiceError", ty: "enum", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#37-73" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a>::<wbr><a class="enum" href="">ServiceError</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum ServiceError {
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../guard/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Enum ServiceError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.AuthorizationRequired">AuthorizationRequired</a><a href="#variant.BlacklistError">BlacklistError</a><a href="#variant.InternalServerError">InternalServerError</a><a href="#variant.NotAUrl">NotAUrl</a><a href="#variant.NotAnEmail">NotAnEmail</a><a href="#variant.PasswordTooLong">PasswordTooLong</a><a href="#variant.PasswordTooShort">PasswordTooShort</a><a href="#variant.ProfainityError">ProfainityError</a><a href="#variant.TokenNameTaken">TokenNameTaken</a><a href="#variant.UsernameCaseMappedError">UsernameCaseMappedError</a><a href="#variant.UsernameNotFound">UsernameNotFound</a><a href="#variant.UsernameTaken">UsernameTaken</a><a href="#variant.WrongPassword">WrongPassword</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-Error">Error</a><a href="#impl-From%3CCredsError%3E">From<CredsError></a><a href="#impl-From%3CError%3E">From<Error></a><a href="#impl-From%3CParseError%3E">From<ParseError></a><a href="#impl-From%3CValidationErrors%3E">From<ValidationErrors></a><a href="#impl-PartialEq%3CServiceError%3E">PartialEq<ServiceError></a><a href="#impl-ResponseError">ResponseError</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Conv">Conv</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pipe">Pipe</a><a href="#impl-PipeAsRef">PipeAsRef</a><a href="#impl-PipeBorrow">PipeBorrow</a><a href="#impl-PipeDeref">PipeDeref</a><a href="#impl-PipeRef">PipeRef</a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-Tap">Tap</a><a href="#impl-TapAsRef%3CU%3E">TapAsRef<U></a><a href="#impl-TapBorrow%3CU%3E">TapBorrow<U></a><a href="#impl-TapDeref">TapDeref</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a></p><script>window.sidebarCurrent = {name: "ServiceError", ty: "enum", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#37-79" title="goto source code">[src]</a></span><span class="in-band">Enum <a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a>::<wbr><a class="enum" href="">ServiceError</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum ServiceError {
|
||||
InternalServerError,
|
||||
NotAnEmail,
|
||||
NotAUrl,
|
||||
WrongPassword,
|
||||
UsernameNotFound,
|
||||
AuthorizationRequired,
|
||||
ProfainityError,
|
||||
BlacklistError,
|
||||
UsernameCaseMappedError,
|
||||
UsernameTaken,
|
||||
PasswordTooShort,
|
||||
PasswordTooLong,
|
||||
NotAUrl,
|
||||
UsernameTaken,
|
||||
TokenNameTaken,
|
||||
}</pre></div><h2 id="variants" class="variants small-section-header">
|
||||
Variants<a href="#variants" class="anchor"></a></h2>
|
||||
<div id="variant.InternalServerError" class="variant small-section-header"><a href="#variant.InternalServerError" class="anchor field"></a><code>InternalServerError</code></div><div id="variant.NotAnEmail" class="variant small-section-header"><a href="#variant.NotAnEmail" class="anchor field"></a><code>NotAnEmail</code></div><div id="variant.WrongPassword" class="variant small-section-header"><a href="#variant.WrongPassword" class="anchor field"></a><code>WrongPassword</code></div><div id="variant.UsernameNotFound" class="variant small-section-header"><a href="#variant.UsernameNotFound" class="anchor field"></a><code>UsernameNotFound</code></div><div id="variant.AuthorizationRequired" class="variant small-section-header"><a href="#variant.AuthorizationRequired" class="anchor field"></a><code>AuthorizationRequired</code></div><div id="variant.ProfainityError" class="variant small-section-header"><a href="#variant.ProfainityError" class="anchor field"></a><code>ProfainityError</code></div><div class="docblock"><p>when the value passed contains profainity</p>
|
||||
<div id="variant.InternalServerError" class="variant small-section-header"><a href="#variant.InternalServerError" class="anchor field"></a><code>InternalServerError</code></div><div id="variant.NotAnEmail" class="variant small-section-header"><a href="#variant.NotAnEmail" class="anchor field"></a><code>NotAnEmail</code></div><div id="variant.NotAUrl" class="variant small-section-header"><a href="#variant.NotAUrl" class="anchor field"></a><code>NotAUrl</code></div><div id="variant.WrongPassword" class="variant small-section-header"><a href="#variant.WrongPassword" class="anchor field"></a><code>WrongPassword</code></div><div id="variant.UsernameNotFound" class="variant small-section-header"><a href="#variant.UsernameNotFound" class="anchor field"></a><code>UsernameNotFound</code></div><div id="variant.AuthorizationRequired" class="variant small-section-header"><a href="#variant.AuthorizationRequired" class="anchor field"></a><code>AuthorizationRequired</code></div><div id="variant.ProfainityError" class="variant small-section-header"><a href="#variant.ProfainityError" class="anchor field"></a><code>ProfainityError</code></div><div class="docblock"><p>when the value passed contains profainity</p>
|
||||
</div><div id="variant.BlacklistError" class="variant small-section-header"><a href="#variant.BlacklistError" class="anchor field"></a><code>BlacklistError</code></div><div class="docblock"><p>when the value passed contains blacklisted words
|
||||
see <a href="https://github.com/shuttlecraft/The-Big-Username-Blacklist">blacklist</a></p>
|
||||
</div><div id="variant.UsernameCaseMappedError" class="variant small-section-header"><a href="#variant.UsernameCaseMappedError" class="anchor field"></a><code>UsernameCaseMappedError</code></div><div class="docblock"><p>when the value passed contains characters not present
|
||||
in <a href="https://tools.ietf.org/html/rfc8265#page-7">UsernameCaseMapped</a>
|
||||
profile</p>
|
||||
</div><div id="variant.UsernameTaken" class="variant small-section-header"><a href="#variant.UsernameTaken" class="anchor field"></a><code>UsernameTaken</code></div><div class="docblock"><p>when the value passed contains profainity</p>
|
||||
</div><div id="variant.PasswordTooShort" class="variant small-section-header"><a href="#variant.PasswordTooShort" class="anchor field"></a><code>PasswordTooShort</code></div><div id="variant.PasswordTooLong" class="variant small-section-header"><a href="#variant.PasswordTooLong" class="anchor field"></a><code>PasswordTooLong</code></div><div id="variant.NotAUrl" class="variant small-section-header"><a href="#variant.NotAUrl" class="anchor field"></a><code>NotAUrl</code></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><div id="variant.PasswordTooShort" class="variant small-section-header"><a href="#variant.PasswordTooShort" class="anchor field"></a><code>PasswordTooShort</code></div><div id="variant.PasswordTooLong" class="variant small-section-header"><a href="#variant.PasswordTooLong" class="anchor field"></a><code>PasswordTooLong</code></div><div id="variant.UsernameTaken" class="variant small-section-header"><a href="#variant.UsernameTaken" class="anchor field"></a><code>UsernameTaken</code></div><div class="docblock"><p>when the a username is already taken</p>
|
||||
</div><div id="variant.TokenNameTaken" class="variant small-section-header"><a href="#variant.TokenNameTaken" class="anchor field"></a><code>TokenNameTaken</code></div><div class="docblock"><p>when the a token name is already taken</p>
|
||||
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id="impl-Display" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&self, _derive_more_display_formatter: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||||
@ -31,15 +33,15 @@ profile</p>
|
||||
</div><h4 id="method.backtrace" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.backtrace" class="fnname">backtrace</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="https://doc.rust-lang.org/nightly/std/backtrace/struct.Backtrace.html" title="struct std::backtrace::Backtrace">Backtrace</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/std/error.rs.html#128-130" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>backtrace</code>)</div></div><div class='docblock hidden'><p>Returns a stack backtrace, if available, of where this error occurred. <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.backtrace">Read more</a></p>
|
||||
</div><h4 id="method.description" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.description" class="fnname">description</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/std/error.rs.html#140-142" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab deprecated"><span class="emoji">👎</span> Deprecated since 1.42.0: <p>use the Display impl or to_string()</p>
|
||||
</div></div><div class='docblock hidden'> <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.description">Read more</a></div><h4 id="method.cause" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.cause" class="fnname">cause</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="https://doc.rust-lang.org/nightly/std/error/trait.Error.html" title="trait std::error::Error">Error</a>></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/std/error.rs.html#150-152" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab deprecated"><span class="emoji">👎</span> Deprecated since 1.33.0: <p>replaced by Error::source, which can support downcasting</p>
|
||||
</div></div></div><h3 id="impl-From%3CCredsError%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><CredsError> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CCredsError%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#111-125" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(e: CredsError) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#113-124" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-From%3CError%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Error> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CError%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#140-154" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-3" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(e: Error) -> Self</code><a class="srclink" href="../../src/guard/errors.rs.html#142-153" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-From%3CParseError%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="https://docs.rs/url/2.2.1/url/parser/enum.ParseError.html" title="enum url::parser::ParseError">ParseError</a>> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CParseError%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#133-137" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-2" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(_: <a class="enum" href="https://docs.rs/url/2.2.1/url/parser/enum.ParseError.html" title="enum url::parser::ParseError">ParseError</a>) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#134-136" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-From%3CValidationErrors%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><ValidationErrors> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CValidationErrors%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#127-131" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(_: ValidationErrors) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#128-130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div></div><h3 id="impl-From%3CCredsError%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><CredsError> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CCredsError%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#118-132" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(e: CredsError) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#120-131" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-From%3CError%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Error> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CError%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#147-160" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-3" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(e: Error) -> Self</code><a class="srclink" href="../../src/guard/errors.rs.html#149-159" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-From%3CParseError%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="https://docs.rs/url/2.2.1/url/parser/enum.ParseError.html" title="enum url::parser::ParseError">ParseError</a>> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CParseError%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#140-144" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-2" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(_: <a class="enum" href="https://docs.rs/url/2.2.1/url/parser/enum.ParseError.html" title="enum url::parser::ParseError">ParseError</a>) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#141-143" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-From%3CValidationErrors%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><ValidationErrors> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-From%3CValidationErrors%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#134-138" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(_: ValidationErrors) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a class="srclink" href="../../src/guard/errors.rs.html#135-137" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||||
</div></div><h3 id="impl-PartialEq%3CServiceError%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a>> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-PartialEq%3CServiceError%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id="method.ne" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#209-211" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id="impl-ResponseError" class="impl"><code class="in-band">impl ResponseError for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-ResponseError" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#82-109" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.error_response" class="method hidden"><code>fn <a href="#method.error_response" class="fnname">error_response</a>(&self) -> HttpResponse</code><a class="srclink" href="../../src/guard/errors.rs.html#84-90" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Create response for error <a href="#method.error_response">Read more</a></p>
|
||||
</div><h4 id="method.status_code" class="method hidden"><code>fn <a href="#method.status_code" class="fnname">status_code</a>(&self) -> <a class="struct" href="https://docs.rs/http/0.2.3/http/status/struct.StatusCode.html" title="struct http::status::StatusCode">StatusCode</a></code><a class="srclink" href="../../src/guard/errors.rs.html#93-108" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Response's status code <a href="#method.status_code">Read more</a></p>
|
||||
</div></div><h3 id="impl-ResponseError" class="impl"><code class="in-band">impl ResponseError for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-ResponseError" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#88-116" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.error_response" class="method hidden"><code>fn <a href="#method.error_response" class="fnname">error_response</a>(&self) -> HttpResponse</code><a class="srclink" href="../../src/guard/errors.rs.html#90-96" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Create response for error <a href="#method.error_response">Read more</a></p>
|
||||
</div><h4 id="method.status_code" class="method hidden"><code>fn <a href="#method.status_code" class="fnname">status_code</a>(&self) -> <a class="struct" href="https://docs.rs/http/0.2.3/http/status/struct.StatusCode.html" title="struct http::status::StatusCode">StatusCode</a></code><a class="srclink" href="../../src/guard/errors.rs.html#99-115" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Response's status code <a href="#method.status_code">Read more</a></p>
|
||||
</div></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#35" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
4
guard/errors/fn.dup_error.html
Normal file
4
guard/errors/fn.dup_error.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!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="API documentation for the Rust `dup_error` fn in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, dup_error"><title>guard::errors::dup_error - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../guard/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a></p><script>window.sidebarCurrent = {name: "dup_error", ty: "fn", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#162-174" title="goto source code">[src]</a></span><span class="in-band">Function <a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a>::<wbr><a class="fn" href="">dup_error</a></span></h1><pre class="rust fn">pub fn dup_error(e: Error, dup_error: <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a>) -> <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "guard";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,7 +1,8 @@
|
||||
<!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="API documentation for the Rust `errors` mod in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, errors"><title>guard::errors - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../guard/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module errors</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class="location"><a href="../index.html">guard</a></p><script>window.sidebarCurrent = {name: "errors", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#18-157" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">guard</a>::<wbr><a class="mod" href="">errors</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../guard/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module errors</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class="location"><a href="../index.html">guard</a></p><script>window.sidebarCurrent = {name: "errors", ty: "mod", relpath: "../"};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#18-177" title="goto source code">[src]</a></span><span class="in-band">Module <a href="../index.html">guard</a>::<wbr><a class="mod" href="">errors</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||
<table><tr class="module-item"><td><a class="struct" href="struct.ErrorToResponse.html" title="guard::errors::ErrorToResponse struct">ErrorToResponse</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.ServiceError.html" title="guard::errors::ServiceError enum">ServiceError</a></td><td class="docblock-short"></td></tr></table><h2 id="types" class="section-header"><a href="#types">Type Definitions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="enum" href="enum.ServiceError.html" title="guard::errors::ServiceError enum">ServiceError</a></td><td class="docblock-short"></td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="fn" href="fn.dup_error.html" title="guard::errors::dup_error fn">dup_error</a></td><td class="docblock-short"></td></tr></table><h2 id="types" class="section-header"><a href="#types">Type Definitions</a></h2>
|
||||
<table><tr class="module-item"><td><a class="type" href="type.ServiceResult.html" title="guard::errors::ServiceResult type">ServiceResult</a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "guard";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"enum":[["ServiceError",""]],"struct":[["ErrorToResponse",""]],"type":[["ServiceResult",""]]});
|
||||
initSidebarItems({"enum":[["ServiceError",""]],"fn":[["dup_error",""]],"struct":[["ErrorToResponse",""]],"type":[["ServiceResult",""]]});
|
@ -1,11 +1,11 @@
|
||||
<!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="API documentation for the Rust `ErrorToResponse` struct in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, ErrorToResponse"><title>guard::errors::ErrorToResponse - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../guard/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct ErrorToResponse</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.error">error</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Deserialize%3C%27de%3E">Deserialize<'de></a><a href="#impl-Serialize">Serialize</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-Conv">Conv</a><a href="#impl-DeserializeOwned">DeserializeOwned</a><a href="#impl-FmtForward">FmtForward</a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pipe">Pipe</a><a href="#impl-PipeAsRef">PipeAsRef</a><a href="#impl-PipeBorrow">PipeBorrow</a><a href="#impl-PipeDeref">PipeDeref</a><a href="#impl-PipeRef">PipeRef</a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-Tap">Tap</a><a href="#impl-TapAsRef%3CU%3E">TapAsRef<U></a><a href="#impl-TapBorrow%3CU%3E">TapBorrow<U></a><a href="#impl-TapDeref">TapDeref</a><a href="#impl-TryConv">TryConv</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a></p><script>window.sidebarCurrent = {name: "ErrorToResponse", ty: "struct", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#77-79" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a>::<wbr><a class="struct" href="">ErrorToResponse</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct ErrorToResponse {
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#83-85" title="goto source code">[src]</a></span><span class="in-band">Struct <a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a>::<wbr><a class="struct" href="">ErrorToResponse</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct ErrorToResponse {
|
||||
pub error: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
}</pre></div><h2 id="fields" class="fields small-section-header">
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.error" class="structfield small-section-header"><a href="#structfield.error" class="anchor field"></a><code>error: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#75" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../../src/guard/errors.rs.html#75" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id="impl-Serialize" class="impl"><code class="in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#75" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.serialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class="srclink" href="../../src/guard/errors.rs.html#75" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.error" class="structfield small-section-header"><a href="#structfield.error" class="anchor field"></a><code>error: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Deserialize%3C%27de%3E" class="impl"><code class="in-band">impl<'de> <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-Deserialize%3C%27de%3E" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#81" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deserialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fnname">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="type" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>> <span class="where fmt-newline">where<br> __D: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><a class="srclink" href="../../src/guard/errors.rs.html#81" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.124/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
|
||||
</div></div><h3 id="impl-Serialize" class="impl"><code class="in-band">impl <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-Serialize" class="anchor"></a><a class="srclink" href="../../src/guard/errors.rs.html#81" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.serialize" class="method hidden"><code>fn <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize" class="fnname">serialize</a><__S>(&self, __serializer: __S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><__S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, __S::<a class="type" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> __S: <a class="trait" href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>, </span></code><a class="srclink" href="../../src/guard/errors.rs.html#81" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Serialize this value into the given Serde serializer. <a href="https://docs.rs/serde/1.0.124/serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
|
||||
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../guard/errors/struct.ErrorToResponse.html" title="struct guard::errors::ErrorToResponse">ErrorToResponse</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../src/guard/main.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210-214" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211-213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217-221" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!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="API documentation for the Rust `ServiceResult` type in crate `guard`."><meta name="keywords" content="rust, rustlang, rust-lang, ServiceResult"><title>guard::errors::ServiceResult - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../guard/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Type Definition ServiceResult</p><div class="sidebar-elems"><p class="location"><a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a></p><script>window.sidebarCurrent = {name: "ServiceResult", ty: "type", relpath: ""};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#157" title="goto source code">[src]</a></span><span class="in-band">Type Definition <a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a>::<wbr><a class="type" href="">ServiceResult</a></span></h1><pre class="rust typedef">type ServiceResult<V> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V, <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a>>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "guard";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/guard/errors.rs.html#177" title="goto source code">[src]</a></span><span class="in-band">Type Definition <a href="../index.html">guard</a>::<wbr><a href="index.html">errors</a>::<wbr><a class="type" href="">ServiceResult</a></span></h1><pre class="rust typedef">type ServiceResult<V> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V, <a class="enum" href="../../guard/errors/enum.ServiceError.html" title="enum guard::errors::ServiceError">ServiceError</a>>;</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "guard";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl Clone for Data","synthetic":false,"types":[]},{"text":"impl Clone for ServiceError","synthetic":false,"types":[]},{"text":"impl Clone for Register","synthetic":false,"types":[]},{"text":"impl Clone for Login","synthetic":false,"types":[]},{"text":"impl Clone for Domain","synthetic":false,"types":[]},{"text":"impl Clone for Server","synthetic":false,"types":[]},{"text":"impl Clone for Captcha","synthetic":false,"types":[]},{"text":"impl Clone for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl Clone for Database","synthetic":false,"types":[]},{"text":"impl Clone for Settings","synthetic":false,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl Clone for Data","synthetic":false,"types":[]},{"text":"impl Clone for ServiceError","synthetic":false,"types":[]},{"text":"impl Clone for Register","synthetic":false,"types":[]},{"text":"impl Clone for Login","synthetic":false,"types":[]},{"text":"impl Clone for Domain","synthetic":false,"types":[]},{"text":"impl Clone for TokenName","synthetic":false,"types":[]},{"text":"impl Clone for TokenKeyPair","synthetic":false,"types":[]},{"text":"impl Clone for Server","synthetic":false,"types":[]},{"text":"impl Clone for Captcha","synthetic":false,"types":[]},{"text":"impl Clone for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl Clone for Database","synthetic":false,"types":[]},{"text":"impl Clone for Settings","synthetic":false,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl Clone for Data","synthetic":false,"types":[]},{"text":"impl Clone for Server","synthetic":false,"types":[]},{"text":"impl Clone for Captcha","synthetic":false,"types":[]},{"text":"impl Clone for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl Clone for Database","synthetic":false,"types":[]},{"text":"impl Clone for Settings","synthetic":false,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl Debug for ServiceError","synthetic":false,"types":[]},{"text":"impl Debug for Register","synthetic":false,"types":[]},{"text":"impl Debug for Login","synthetic":false,"types":[]},{"text":"impl Debug for Domain","synthetic":false,"types":[]},{"text":"impl Debug for Server","synthetic":false,"types":[]},{"text":"impl Debug for Captcha","synthetic":false,"types":[]},{"text":"impl Debug for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl Debug for Database","synthetic":false,"types":[]},{"text":"impl Debug for Settings","synthetic":false,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl Debug for ServiceError","synthetic":false,"types":[]},{"text":"impl Debug for Register","synthetic":false,"types":[]},{"text":"impl Debug for Login","synthetic":false,"types":[]},{"text":"impl Debug for Domain","synthetic":false,"types":[]},{"text":"impl Debug for TokenName","synthetic":false,"types":[]},{"text":"impl Debug for TokenKeyPair","synthetic":false,"types":[]},{"text":"impl Debug for Server","synthetic":false,"types":[]},{"text":"impl Debug for Captcha","synthetic":false,"types":[]},{"text":"impl Debug for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl Debug for Database","synthetic":false,"types":[]},{"text":"impl Debug for Settings","synthetic":false,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl Debug for Server","synthetic":false,"types":[]},{"text":"impl Debug for Captcha","synthetic":false,"types":[]},{"text":"impl Debug for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl Debug for Database","synthetic":false,"types":[]},{"text":"impl Debug for Settings","synthetic":false,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl Freeze for Data","synthetic":true,"types":[]},{"text":"impl Freeze for ServiceError","synthetic":true,"types":[]},{"text":"impl Freeze for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Freeze for Register","synthetic":true,"types":[]},{"text":"impl Freeze for Login","synthetic":true,"types":[]},{"text":"impl Freeze for Password","synthetic":true,"types":[]},{"text":"impl Freeze for signup","synthetic":true,"types":[]},{"text":"impl Freeze for signin","synthetic":true,"types":[]},{"text":"impl Freeze for signout","synthetic":true,"types":[]},{"text":"impl Freeze for delete_account","synthetic":true,"types":[]},{"text":"impl Freeze for Domain","synthetic":true,"types":[]},{"text":"impl Freeze for add_domain","synthetic":true,"types":[]},{"text":"impl Freeze for delete_domain","synthetic":true,"types":[]},{"text":"impl Freeze for Server","synthetic":true,"types":[]},{"text":"impl Freeze for Captcha","synthetic":true,"types":[]},{"text":"impl Freeze for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Freeze for Database","synthetic":true,"types":[]},{"text":"impl Freeze for Settings","synthetic":true,"types":[]},{"text":"impl Freeze for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl Freeze for Data","synthetic":true,"types":[]},{"text":"impl Freeze for ServiceError","synthetic":true,"types":[]},{"text":"impl Freeze for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Freeze for Register","synthetic":true,"types":[]},{"text":"impl Freeze for Login","synthetic":true,"types":[]},{"text":"impl Freeze for Password","synthetic":true,"types":[]},{"text":"impl Freeze for signup","synthetic":true,"types":[]},{"text":"impl Freeze for signin","synthetic":true,"types":[]},{"text":"impl Freeze for signout","synthetic":true,"types":[]},{"text":"impl Freeze for delete_account","synthetic":true,"types":[]},{"text":"impl Freeze for Domain","synthetic":true,"types":[]},{"text":"impl Freeze for add_domain","synthetic":true,"types":[]},{"text":"impl Freeze for delete_domain","synthetic":true,"types":[]},{"text":"impl Freeze for TokenName","synthetic":true,"types":[]},{"text":"impl Freeze for TokenKeyPair","synthetic":true,"types":[]},{"text":"impl Freeze for Server","synthetic":true,"types":[]},{"text":"impl Freeze for Captcha","synthetic":true,"types":[]},{"text":"impl Freeze for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Freeze for Database","synthetic":true,"types":[]},{"text":"impl Freeze for Settings","synthetic":true,"types":[]},{"text":"impl Freeze for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl Freeze for Data","synthetic":true,"types":[]},{"text":"impl Freeze for Server","synthetic":true,"types":[]},{"text":"impl Freeze for Captcha","synthetic":true,"types":[]},{"text":"impl Freeze for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Freeze for Database","synthetic":true,"types":[]},{"text":"impl Freeze for Settings","synthetic":true,"types":[]},{"text":"impl Freeze for SETTINGS","synthetic":true,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl Send for Data","synthetic":true,"types":[]},{"text":"impl Send for ServiceError","synthetic":true,"types":[]},{"text":"impl Send for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Send for Register","synthetic":true,"types":[]},{"text":"impl Send for Login","synthetic":true,"types":[]},{"text":"impl Send for Password","synthetic":true,"types":[]},{"text":"impl Send for signup","synthetic":true,"types":[]},{"text":"impl Send for signin","synthetic":true,"types":[]},{"text":"impl Send for signout","synthetic":true,"types":[]},{"text":"impl Send for delete_account","synthetic":true,"types":[]},{"text":"impl Send for Domain","synthetic":true,"types":[]},{"text":"impl Send for add_domain","synthetic":true,"types":[]},{"text":"impl Send for delete_domain","synthetic":true,"types":[]},{"text":"impl Send for Server","synthetic":true,"types":[]},{"text":"impl Send for Captcha","synthetic":true,"types":[]},{"text":"impl Send for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Send for Database","synthetic":true,"types":[]},{"text":"impl Send for Settings","synthetic":true,"types":[]},{"text":"impl Send for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl Send for Data","synthetic":true,"types":[]},{"text":"impl Send for ServiceError","synthetic":true,"types":[]},{"text":"impl Send for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Send for Register","synthetic":true,"types":[]},{"text":"impl Send for Login","synthetic":true,"types":[]},{"text":"impl Send for Password","synthetic":true,"types":[]},{"text":"impl Send for signup","synthetic":true,"types":[]},{"text":"impl Send for signin","synthetic":true,"types":[]},{"text":"impl Send for signout","synthetic":true,"types":[]},{"text":"impl Send for delete_account","synthetic":true,"types":[]},{"text":"impl Send for Domain","synthetic":true,"types":[]},{"text":"impl Send for add_domain","synthetic":true,"types":[]},{"text":"impl Send for delete_domain","synthetic":true,"types":[]},{"text":"impl Send for TokenName","synthetic":true,"types":[]},{"text":"impl Send for TokenKeyPair","synthetic":true,"types":[]},{"text":"impl Send for Server","synthetic":true,"types":[]},{"text":"impl Send for Captcha","synthetic":true,"types":[]},{"text":"impl Send for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Send for Database","synthetic":true,"types":[]},{"text":"impl Send for Settings","synthetic":true,"types":[]},{"text":"impl Send for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl Send for Data","synthetic":true,"types":[]},{"text":"impl Send for Server","synthetic":true,"types":[]},{"text":"impl Send for Captcha","synthetic":true,"types":[]},{"text":"impl Send for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Send for Database","synthetic":true,"types":[]},{"text":"impl Send for Settings","synthetic":true,"types":[]},{"text":"impl Send for SETTINGS","synthetic":true,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl Sync for Data","synthetic":true,"types":[]},{"text":"impl Sync for ServiceError","synthetic":true,"types":[]},{"text":"impl Sync for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Sync for Register","synthetic":true,"types":[]},{"text":"impl Sync for Login","synthetic":true,"types":[]},{"text":"impl Sync for Password","synthetic":true,"types":[]},{"text":"impl Sync for signup","synthetic":true,"types":[]},{"text":"impl Sync for signin","synthetic":true,"types":[]},{"text":"impl Sync for signout","synthetic":true,"types":[]},{"text":"impl Sync for delete_account","synthetic":true,"types":[]},{"text":"impl Sync for Domain","synthetic":true,"types":[]},{"text":"impl Sync for add_domain","synthetic":true,"types":[]},{"text":"impl Sync for delete_domain","synthetic":true,"types":[]},{"text":"impl Sync for Server","synthetic":true,"types":[]},{"text":"impl Sync for Captcha","synthetic":true,"types":[]},{"text":"impl Sync for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Sync for Database","synthetic":true,"types":[]},{"text":"impl Sync for Settings","synthetic":true,"types":[]},{"text":"impl Sync for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl Sync for Data","synthetic":true,"types":[]},{"text":"impl Sync for ServiceError","synthetic":true,"types":[]},{"text":"impl Sync for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Sync for Register","synthetic":true,"types":[]},{"text":"impl Sync for Login","synthetic":true,"types":[]},{"text":"impl Sync for Password","synthetic":true,"types":[]},{"text":"impl Sync for signup","synthetic":true,"types":[]},{"text":"impl Sync for signin","synthetic":true,"types":[]},{"text":"impl Sync for signout","synthetic":true,"types":[]},{"text":"impl Sync for delete_account","synthetic":true,"types":[]},{"text":"impl Sync for Domain","synthetic":true,"types":[]},{"text":"impl Sync for add_domain","synthetic":true,"types":[]},{"text":"impl Sync for delete_domain","synthetic":true,"types":[]},{"text":"impl Sync for TokenName","synthetic":true,"types":[]},{"text":"impl Sync for TokenKeyPair","synthetic":true,"types":[]},{"text":"impl Sync for Server","synthetic":true,"types":[]},{"text":"impl Sync for Captcha","synthetic":true,"types":[]},{"text":"impl Sync for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Sync for Database","synthetic":true,"types":[]},{"text":"impl Sync for Settings","synthetic":true,"types":[]},{"text":"impl Sync for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl Sync for Data","synthetic":true,"types":[]},{"text":"impl Sync for Server","synthetic":true,"types":[]},{"text":"impl Sync for Captcha","synthetic":true,"types":[]},{"text":"impl Sync for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Sync for Database","synthetic":true,"types":[]},{"text":"impl Sync for Settings","synthetic":true,"types":[]},{"text":"impl Sync for SETTINGS","synthetic":true,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl Unpin for Data","synthetic":true,"types":[]},{"text":"impl Unpin for ServiceError","synthetic":true,"types":[]},{"text":"impl Unpin for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Unpin for Register","synthetic":true,"types":[]},{"text":"impl Unpin for Login","synthetic":true,"types":[]},{"text":"impl Unpin for Password","synthetic":true,"types":[]},{"text":"impl Unpin for signup","synthetic":true,"types":[]},{"text":"impl Unpin for signin","synthetic":true,"types":[]},{"text":"impl Unpin for signout","synthetic":true,"types":[]},{"text":"impl Unpin for delete_account","synthetic":true,"types":[]},{"text":"impl Unpin for Domain","synthetic":true,"types":[]},{"text":"impl Unpin for add_domain","synthetic":true,"types":[]},{"text":"impl Unpin for delete_domain","synthetic":true,"types":[]},{"text":"impl Unpin for Server","synthetic":true,"types":[]},{"text":"impl Unpin for Captcha","synthetic":true,"types":[]},{"text":"impl Unpin for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Unpin for Database","synthetic":true,"types":[]},{"text":"impl Unpin for Settings","synthetic":true,"types":[]},{"text":"impl Unpin for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl Unpin for Data","synthetic":true,"types":[]},{"text":"impl Unpin for ServiceError","synthetic":true,"types":[]},{"text":"impl Unpin for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl Unpin for Register","synthetic":true,"types":[]},{"text":"impl Unpin for Login","synthetic":true,"types":[]},{"text":"impl Unpin for Password","synthetic":true,"types":[]},{"text":"impl Unpin for signup","synthetic":true,"types":[]},{"text":"impl Unpin for signin","synthetic":true,"types":[]},{"text":"impl Unpin for signout","synthetic":true,"types":[]},{"text":"impl Unpin for delete_account","synthetic":true,"types":[]},{"text":"impl Unpin for Domain","synthetic":true,"types":[]},{"text":"impl Unpin for add_domain","synthetic":true,"types":[]},{"text":"impl Unpin for delete_domain","synthetic":true,"types":[]},{"text":"impl Unpin for TokenName","synthetic":true,"types":[]},{"text":"impl Unpin for TokenKeyPair","synthetic":true,"types":[]},{"text":"impl Unpin for Server","synthetic":true,"types":[]},{"text":"impl Unpin for Captcha","synthetic":true,"types":[]},{"text":"impl Unpin for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Unpin for Database","synthetic":true,"types":[]},{"text":"impl Unpin for Settings","synthetic":true,"types":[]},{"text":"impl Unpin for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl Unpin for Data","synthetic":true,"types":[]},{"text":"impl Unpin for Server","synthetic":true,"types":[]},{"text":"impl Unpin for Captcha","synthetic":true,"types":[]},{"text":"impl Unpin for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl Unpin for Database","synthetic":true,"types":[]},{"text":"impl Unpin for Settings","synthetic":true,"types":[]},{"text":"impl Unpin for SETTINGS","synthetic":true,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl<'de> Deserialize<'de> for ErrorToResponse","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Register","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Login","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Domain","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Server","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Captcha","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Database","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Settings","synthetic":false,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl<'de> Deserialize<'de> for ErrorToResponse","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Register","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Login","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Domain","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for TokenName","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for TokenKeyPair","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Server","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Captcha","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Database","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Settings","synthetic":false,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl<'de> Deserialize<'de> for Server","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Captcha","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for DatabaseBuilder","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Database","synthetic":false,"types":[]},{"text":"impl<'de> Deserialize<'de> for Settings","synthetic":false,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,3 +1,3 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl Serialize for ErrorToResponse","synthetic":false,"types":[]},{"text":"impl Serialize for Register","synthetic":false,"types":[]},{"text":"impl Serialize for Login","synthetic":false,"types":[]},{"text":"impl Serialize for Domain","synthetic":false,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl Serialize for ErrorToResponse","synthetic":false,"types":[]},{"text":"impl Serialize for Register","synthetic":false,"types":[]},{"text":"impl Serialize for Login","synthetic":false,"types":[]},{"text":"impl Serialize for Domain","synthetic":false,"types":[]},{"text":"impl Serialize for TokenName","synthetic":false,"types":[]},{"text":"impl Serialize for TokenKeyPair","synthetic":false,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl !RefUnwindSafe for Data","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for ServiceError","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Register","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Login","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Password","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for signup","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for signin","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for signout","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for delete_account","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Domain","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for add_domain","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for delete_domain","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Server","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Captcha","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Database","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Settings","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl !RefUnwindSafe for Data","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for ServiceError","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Register","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Login","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Password","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for signup","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for signin","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for signout","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for delete_account","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Domain","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for add_domain","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for delete_domain","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for TokenName","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for TokenKeyPair","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Server","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Captcha","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Database","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Settings","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl !RefUnwindSafe for Data","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Server","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Captcha","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Database","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for Settings","synthetic":true,"types":[]},{"text":"impl RefUnwindSafe for SETTINGS","synthetic":true,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
@ -1,4 +1,4 @@
|
||||
(function() {var implementors = {};
|
||||
implementors["guard"] = [{"text":"impl !UnwindSafe for Data","synthetic":true,"types":[]},{"text":"impl UnwindSafe for ServiceError","synthetic":true,"types":[]},{"text":"impl UnwindSafe for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Register","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Login","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Password","synthetic":true,"types":[]},{"text":"impl UnwindSafe for signup","synthetic":true,"types":[]},{"text":"impl UnwindSafe for signin","synthetic":true,"types":[]},{"text":"impl UnwindSafe for signout","synthetic":true,"types":[]},{"text":"impl UnwindSafe for delete_account","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Domain","synthetic":true,"types":[]},{"text":"impl UnwindSafe for add_domain","synthetic":true,"types":[]},{"text":"impl UnwindSafe for delete_domain","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Server","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Captcha","synthetic":true,"types":[]},{"text":"impl UnwindSafe for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Database","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Settings","synthetic":true,"types":[]},{"text":"impl UnwindSafe for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["guard"] = [{"text":"impl !UnwindSafe for Data","synthetic":true,"types":[]},{"text":"impl UnwindSafe for ServiceError","synthetic":true,"types":[]},{"text":"impl UnwindSafe for ErrorToResponse","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Register","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Login","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Password","synthetic":true,"types":[]},{"text":"impl UnwindSafe for signup","synthetic":true,"types":[]},{"text":"impl UnwindSafe for signin","synthetic":true,"types":[]},{"text":"impl UnwindSafe for signout","synthetic":true,"types":[]},{"text":"impl UnwindSafe for delete_account","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Domain","synthetic":true,"types":[]},{"text":"impl UnwindSafe for add_domain","synthetic":true,"types":[]},{"text":"impl UnwindSafe for delete_domain","synthetic":true,"types":[]},{"text":"impl UnwindSafe for TokenName","synthetic":true,"types":[]},{"text":"impl UnwindSafe for TokenKeyPair","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Server","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Captcha","synthetic":true,"types":[]},{"text":"impl UnwindSafe for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Database","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Settings","synthetic":true,"types":[]},{"text":"impl UnwindSafe for SETTINGS","synthetic":true,"types":[]}];
|
||||
implementors["tests_migrate"] = [{"text":"impl !UnwindSafe for Data","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Server","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Captcha","synthetic":true,"types":[]},{"text":"impl UnwindSafe for DatabaseBuilder","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Database","synthetic":true,"types":[]},{"text":"impl UnwindSafe for Settings","synthetic":true,"types":[]},{"text":"impl UnwindSafe for SETTINGS","synthetic":true,"types":[]}];
|
||||
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
File diff suppressed because one or more lines are too long
@ -251,6 +251,12 @@
|
||||
<span id="248">248</span>
|
||||
<span id="249">249</span>
|
||||
<span id="250">250</span>
|
||||
<span id="251">251</span>
|
||||
<span id="252">252</span>
|
||||
<span id="253">253</span>
|
||||
<span id="254">254</span>
|
||||
<span id="255">255</span>
|
||||
<span id="256">256</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="comment">/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
@ -302,15 +308,19 @@
|
||||
<span class="kw">let</span> <span class="ident">username</span> <span class="op">=</span> <span class="ident">data</span>.<span class="ident">creds</span>.<span class="ident">username</span>(<span class="kw-2">&</span><span class="ident">payload</span>.<span class="ident">username</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="ident">hash</span> <span class="op">=</span> <span class="ident">data</span>.<span class="ident">creds</span>.<span class="ident">password</span>(<span class="kw-2">&</span><span class="ident">payload</span>.<span class="ident">password</span>)<span class="question-mark">?</span>;
|
||||
<span class="ident">data</span>.<span class="ident">creds</span>.<span class="ident">email</span>(<span class="prelude-val">Some</span>(<span class="kw-2">&</span><span class="ident">payload</span>.<span class="ident">email</span>))<span class="question-mark">?</span>;
|
||||
<span class="ident">sqlx</span>::<span class="macro">query</span><span class="macro">!</span>(
|
||||
<span class="kw">let</span> <span class="ident">res</span> <span class="op">=</span> <span class="ident">sqlx</span>::<span class="macro">query</span><span class="macro">!</span>(
|
||||
<span class="string">"INSERT INTO mcaptcha_users (name , password, email) VALUES ($1, $2, $3)"</span>,
|
||||
<span class="ident">username</span>,
|
||||
<span class="ident">hash</span>,
|
||||
<span class="kw-2">&</span><span class="ident">payload</span>.<span class="ident">email</span>
|
||||
)
|
||||
.<span class="ident">execute</span>(<span class="kw-2">&</span><span class="ident">data</span>.<span class="ident">db</span>)
|
||||
.<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">HttpResponse</span>::<span class="prelude-val">Ok</span>())
|
||||
.<span class="kw">await</span>;
|
||||
|
||||
<span class="kw">match</span> <span class="ident">res</span> {
|
||||
<span class="prelude-val">Err</span>(<span class="ident">e</span>) <span class="op">=</span><span class="op">></span> <span class="prelude-val">Err</span>(<span class="ident">dup_error</span>(<span class="ident">e</span>, <span class="ident">ServiceError</span>::<span class="ident">UsernameTaken</span>)),
|
||||
<span class="prelude-val">Ok</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> <span class="prelude-val">Ok</span>(<span class="ident">HttpResponse</span>::<span class="prelude-val">Ok</span>()),
|
||||
}
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">post</span>(<span class="string">"/api/v1/signin"</span>)]</span>
|
||||
@ -383,6 +393,8 @@
|
||||
.<span class="ident">fetch_one</span>(<span class="kw-2">&</span><span class="ident">data</span>.<span class="ident">db</span>)
|
||||
.<span class="kw">await</span>;
|
||||
|
||||
<span class="ident">id</span>.<span class="ident">forget</span>();
|
||||
|
||||
<span class="kw">match</span> <span class="ident">rec</span> {
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">s</span>) <span class="op">=</span><span class="op">></span> {
|
||||
<span class="kw">if</span> <span class="ident">Config</span>::<span class="ident">verify</span>(<span class="kw-2">&</span><span class="ident">s</span>.<span class="ident">password</span>, <span class="kw-2">&</span><span class="ident">payload</span>.<span class="ident">password</span>)<span class="question-mark">?</span> {
|
||||
|
@ -117,6 +117,66 @@
|
||||
<span id="114">114</span>
|
||||
<span id="115">115</span>
|
||||
<span id="116">116</span>
|
||||
<span id="117">117</span>
|
||||
<span id="118">118</span>
|
||||
<span id="119">119</span>
|
||||
<span id="120">120</span>
|
||||
<span id="121">121</span>
|
||||
<span id="122">122</span>
|
||||
<span id="123">123</span>
|
||||
<span id="124">124</span>
|
||||
<span id="125">125</span>
|
||||
<span id="126">126</span>
|
||||
<span id="127">127</span>
|
||||
<span id="128">128</span>
|
||||
<span id="129">129</span>
|
||||
<span id="130">130</span>
|
||||
<span id="131">131</span>
|
||||
<span id="132">132</span>
|
||||
<span id="133">133</span>
|
||||
<span id="134">134</span>
|
||||
<span id="135">135</span>
|
||||
<span id="136">136</span>
|
||||
<span id="137">137</span>
|
||||
<span id="138">138</span>
|
||||
<span id="139">139</span>
|
||||
<span id="140">140</span>
|
||||
<span id="141">141</span>
|
||||
<span id="142">142</span>
|
||||
<span id="143">143</span>
|
||||
<span id="144">144</span>
|
||||
<span id="145">145</span>
|
||||
<span id="146">146</span>
|
||||
<span id="147">147</span>
|
||||
<span id="148">148</span>
|
||||
<span id="149">149</span>
|
||||
<span id="150">150</span>
|
||||
<span id="151">151</span>
|
||||
<span id="152">152</span>
|
||||
<span id="153">153</span>
|
||||
<span id="154">154</span>
|
||||
<span id="155">155</span>
|
||||
<span id="156">156</span>
|
||||
<span id="157">157</span>
|
||||
<span id="158">158</span>
|
||||
<span id="159">159</span>
|
||||
<span id="160">160</span>
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
<span id="164">164</span>
|
||||
<span id="165">165</span>
|
||||
<span id="166">166</span>
|
||||
<span id="167">167</span>
|
||||
<span id="168">168</span>
|
||||
<span id="169">169</span>
|
||||
<span id="170">170</span>
|
||||
<span id="171">171</span>
|
||||
<span id="172">172</span>
|
||||
<span id="173">173</span>
|
||||
<span id="174">174</span>
|
||||
<span id="175">175</span>
|
||||
<span id="176">176</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="comment">/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
@ -158,9 +218,15 @@
|
||||
<span class="ident">is_authenticated</span>(<span class="kw-2">&</span><span class="ident">id</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="ident">url</span> <span class="op">=</span> <span class="ident">Url</span>::<span class="ident">parse</span>(<span class="kw-2">&</span><span class="ident">payload</span>.<span class="ident">name</span>)<span class="question-mark">?</span>;
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">host</span>) <span class="op">=</span> <span class="ident">url</span>.<span class="ident">host_str</span>() {
|
||||
<span class="ident">sqlx</span>::<span class="macro">query</span><span class="macro">!</span>(<span class="string">"INSERT INTO mcaptcha_domains (name) VALUES ($1)"</span>, <span class="ident">host</span>,)
|
||||
.<span class="ident">execute</span>(<span class="kw-2">&</span><span class="ident">data</span>.<span class="ident">db</span>)
|
||||
.<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="kw">let</span> <span class="ident">user</span> <span class="op">=</span> <span class="ident">id</span>.<span class="ident">identity</span>().<span class="ident">unwrap</span>();
|
||||
<span class="ident">sqlx</span>::<span class="macro">query</span><span class="macro">!</span>(
|
||||
<span class="string">"insert into mcaptcha_domains (name, ID) values
|
||||
($1, (select ID from mcaptcha_users where name = ($2) ));"</span>,
|
||||
<span class="ident">host</span>,
|
||||
<span class="ident">user</span>
|
||||
)
|
||||
.<span class="ident">execute</span>(<span class="kw-2">&</span><span class="ident">data</span>.<span class="ident">db</span>)
|
||||
.<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(<span class="ident">HttpResponse</span>::<span class="prelude-val">Ok</span>())
|
||||
} <span class="kw">else</span> {
|
||||
<span class="prelude-val">Err</span>(<span class="ident">ServiceError</span>::<span class="ident">NotAUrl</span>)
|
||||
@ -185,6 +251,60 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>, <span class="ident">Debug</span>, <span class="ident">Deserialize</span>, <span class="ident">Serialize</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">TokenName</span> {
|
||||
<span class="kw">pub</span> <span class="ident">name</span>: <span class="ident">String</span>,
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>, <span class="ident">Debug</span>, <span class="ident">Deserialize</span>, <span class="ident">Serialize</span>)]</span>
|
||||
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">TokenKeyPair</span> {
|
||||
<span class="kw">pub</span> <span class="ident">name</span>: <span class="ident">String</span>,
|
||||
<span class="kw">pub</span> <span class="ident">key</span>: <span class="ident">String</span>,
|
||||
}
|
||||
|
||||
<span class="comment">//#[post("/api/v1/mcaptcha/domain/token/add")]</span>
|
||||
<span class="comment">//pub async fn add_mcaptcha(</span>
|
||||
<span class="comment">// payload: web::Json<Domain>,</span>
|
||||
<span class="comment">// data: web::Data<Data>,</span>
|
||||
<span class="comment">// id: Identity,</span>
|
||||
<span class="comment">//) -> ServiceResult<impl Responder> {</span>
|
||||
<span class="comment">// is_authenticated(&id)?;</span>
|
||||
<span class="comment">// let key = get_random(32);</span>
|
||||
<span class="comment">// let res = sqlx::query!(</span>
|
||||
<span class="comment">// "INSERT INTO mcaptcha_config (name, key) VALUES ($1, $2)",</span>
|
||||
<span class="comment">// &payload.name,</span>
|
||||
<span class="comment">// &key,</span>
|
||||
<span class="comment">// )</span>
|
||||
<span class="comment">// .execute(&data.db)</span>
|
||||
<span class="comment">// .await;</span>
|
||||
<span class="comment">//</span>
|
||||
<span class="comment">// match res {</span>
|
||||
<span class="comment">// Err(e) => Err(dup_error(e, ServiceError::UsernameTaken)),</span>
|
||||
<span class="comment">// Ok(_) => {</span>
|
||||
<span class="comment">// let resp = TokenKeyPair {</span>
|
||||
<span class="comment">// key,</span>
|
||||
<span class="comment">// name: payload.name,</span>
|
||||
<span class="comment">// };</span>
|
||||
<span class="comment">//</span>
|
||||
<span class="comment">// Ok(HttpResponse::Ok().json(resp))</span>
|
||||
<span class="comment">// }</span>
|
||||
<span class="comment">// }</span>
|
||||
<span class="comment">//}</span>
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">get_random</span>(<span class="ident">len</span>: <span class="ident">usize</span>) <span class="op">-</span><span class="op">></span> <span class="ident">String</span> {
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">iter</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident">rand</span>::{<span class="ident">distributions</span>::<span class="ident">Alphanumeric</span>, <span class="ident">rngs</span>::<span class="ident">ThreadRng</span>, <span class="ident">thread_rng</span>, <span class="ident">Rng</span>};
|
||||
|
||||
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">rng</span>: <span class="ident">ThreadRng</span> <span class="op">=</span> <span class="ident">thread_rng</span>();
|
||||
|
||||
<span class="ident">iter</span>::<span class="ident">repeat</span>(())
|
||||
.<span class="ident">map</span>(<span class="op">|</span>()<span class="op">|</span> <span class="ident">rng</span>.<span class="ident">sample</span>(<span class="ident">Alphanumeric</span>))
|
||||
.<span class="ident">map</span>(<span class="ident">char</span>::<span class="ident">from</span>)
|
||||
.<span class="ident">take</span>(<span class="ident">len</span>)
|
||||
.<span class="ident">collect</span>::<span class="op"><</span><span class="ident">String</span><span class="op">></span>()
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">test</span>)]</span>
|
||||
<span class="kw">mod</span> <span class="ident">tests</span> {
|
||||
<span class="kw">use</span> <span class="ident">actix_web</span>::<span class="ident">http</span>::{<span class="ident">header</span>, <span class="ident">StatusCode</span>};
|
||||
@ -197,7 +317,7 @@
|
||||
|
||||
<span class="attribute">#[<span class="ident">actix_rt</span>::<span class="ident">test</span>]</span>
|
||||
<span class="kw">async</span> <span class="kw">fn</span> <span class="ident">add_domains_work</span>() {
|
||||
<span class="kw">const</span> <span class="ident">NAME</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"testuserdomain"</span>;
|
||||
<span class="kw">const</span> <span class="ident">NAME</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"testuserdomainn"</span>;
|
||||
<span class="kw">const</span> <span class="ident">PASSWORD</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"longpassworddomain"</span>;
|
||||
<span class="kw">const</span> <span class="ident">EMAIL</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"testuserdomain@a.com"</span>;
|
||||
<span class="kw">const</span> <span class="ident">DOMAIN</span>: <span class="kw-2">&</span><span class="ident">str</span> <span class="op">=</span> <span class="string">"http://example.com"</span>;
|
||||
|
@ -158,6 +158,26 @@
|
||||
<span id="155">155</span>
|
||||
<span id="156">156</span>
|
||||
<span id="157">157</span>
|
||||
<span id="158">158</span>
|
||||
<span id="159">159</span>
|
||||
<span id="160">160</span>
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
<span id="164">164</span>
|
||||
<span id="165">165</span>
|
||||
<span id="166">166</span>
|
||||
<span id="167">167</span>
|
||||
<span id="168">168</span>
|
||||
<span id="169">169</span>
|
||||
<span id="170">170</span>
|
||||
<span id="171">171</span>
|
||||
<span id="172">172</span>
|
||||
<span id="173">173</span>
|
||||
<span id="174">174</span>
|
||||
<span id="175">175</span>
|
||||
<span id="176">176</span>
|
||||
<span id="177">177</span>
|
||||
</pre><div class="example-wrap"><pre class="rust ">
|
||||
<span class="comment">/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
@ -198,8 +218,12 @@
|
||||
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">ServiceError</span> {
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"internal server error"</span>)]</span>
|
||||
<span class="ident">InternalServerError</span>,
|
||||
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"The value you entered for email is not an email"</span>)]</span> <span class="comment">//405j</span>
|
||||
<span class="ident">NotAnEmail</span>,
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"The value you entered for URL is not a URL"</span>)]</span> <span class="comment">//405j</span>
|
||||
<span class="ident">NotAUrl</span>,
|
||||
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"Wrong password"</span>)]</span>
|
||||
<span class="ident">WrongPassword</span>,
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"Username not found"</span>)]</span>
|
||||
@ -215,22 +239,24 @@
|
||||
<span class="doccomment">/// see [blacklist](https://github.com/shuttlecraft/The-Big-Username-Blacklist)</span>
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"Username contains blacklisted words"</span>)]</span>
|
||||
<span class="ident">BlacklistError</span>,
|
||||
|
||||
<span class="doccomment">/// when the value passed contains characters not present</span>
|
||||
<span class="doccomment">/// in [UsernameCaseMapped](https://tools.ietf.org/html/rfc8265#page-7)</span>
|
||||
<span class="doccomment">/// profile</span>
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"username_case_mapped violation"</span>)]</span>
|
||||
<span class="ident">UsernameCaseMappedError</span>,
|
||||
|
||||
<span class="doccomment">/// when the value passed contains profainity</span>
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"Username not available"</span>)]</span>
|
||||
<span class="ident">UsernameTaken</span>,
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"Passsword too short"</span>)]</span>
|
||||
<span class="ident">PasswordTooShort</span>,
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"Username too long"</span>)]</span>
|
||||
<span class="ident">PasswordTooLong</span>,
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"The value you entered for URL is not a URL"</span>)]</span> <span class="comment">//405j</span>
|
||||
<span class="ident">NotAUrl</span>,
|
||||
|
||||
<span class="doccomment">/// when the a username is already taken</span>
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"Username not available"</span>)]</span>
|
||||
<span class="ident">UsernameTaken</span>,
|
||||
|
||||
<span class="doccomment">/// when the a token name is already taken</span>
|
||||
<span class="attribute">#[<span class="ident">display</span>(<span class="ident">fmt</span> <span class="op">=</span> <span class="string">"token name not available"</span>)]</span>
|
||||
<span class="ident">TokenNameTaken</span>,
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Serialize</span>, <span class="ident">Deserialize</span>)]</span>
|
||||
@ -265,6 +291,7 @@
|
||||
<span class="ident">ServiceError</span>::<span class="ident">PasswordTooLong</span> <span class="op">=</span><span class="op">></span> <span class="ident">StatusCode</span>::<span class="ident">BAD_REQUEST</span>,
|
||||
<span class="ident">ServiceError</span>::<span class="ident">UsernameCaseMappedError</span> <span class="op">=</span><span class="op">></span> <span class="ident">StatusCode</span>::<span class="ident">BAD_REQUEST</span>,
|
||||
<span class="ident">ServiceError</span>::<span class="ident">UsernameTaken</span> <span class="op">=</span><span class="op">></span> <span class="ident">StatusCode</span>::<span class="ident">BAD_REQUEST</span>,
|
||||
<span class="ident">ServiceError</span>::<span class="ident">TokenNameTaken</span> <span class="op">=</span><span class="op">></span> <span class="ident">StatusCode</span>::<span class="ident">BAD_REQUEST</span>,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -303,7 +330,6 @@
|
||||
<span class="kw">fn</span> <span class="ident">from</span>(<span class="ident">e</span>: <span class="ident">sqlx</span>::<span class="ident">Error</span>) <span class="op">-</span><span class="op">></span> <span class="self">Self</span> {
|
||||
<span class="kw">use</span> <span class="ident">sqlx</span>::<span class="ident">error</span>::<span class="ident">Error</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">borrow</span>::<span class="ident">Cow</span>;
|
||||
<span class="macro">debug</span><span class="macro">!</span>(<span class="string">"{:?}"</span>, <span class="kw-2">&</span><span class="ident">e</span>);
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">Error</span>::<span class="ident">Database</span>(<span class="ident">err</span>) <span class="op">=</span> <span class="ident">e</span> {
|
||||
<span class="kw">if</span> <span class="ident">err</span>.<span class="ident">code</span>() <span class="op">=</span><span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Cow</span>::<span class="ident">from</span>(<span class="string">"23505"</span>)) {
|
||||
<span class="kw">return</span> <span class="ident">ServiceError</span>::<span class="ident">UsernameTaken</span>;
|
||||
@ -314,6 +340,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">dup_error</span>(<span class="ident">e</span>: <span class="ident">sqlx</span>::<span class="ident">Error</span>, <span class="ident">dup_error</span>: <span class="ident">ServiceError</span>) <span class="op">-</span><span class="op">></span> <span class="ident">ServiceError</span> {
|
||||
<span class="kw">use</span> <span class="ident">sqlx</span>::<span class="ident">error</span>::<span class="ident">Error</span>;
|
||||
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">borrow</span>::<span class="ident">Cow</span>;
|
||||
<span class="kw">if</span> <span class="kw">let</span> <span class="ident">Error</span>::<span class="ident">Database</span>(<span class="ident">err</span>) <span class="op">=</span> <span class="ident">e</span> {
|
||||
<span class="kw">if</span> <span class="ident">err</span>.<span class="ident">code</span>() <span class="op">=</span><span class="op">=</span> <span class="prelude-val">Some</span>(<span class="ident">Cow</span>::<span class="ident">from</span>(<span class="string">"23505"</span>)) {
|
||||
<span class="ident">dup_error</span>
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">ServiceError</span>::<span class="ident">InternalServerError</span>
|
||||
}
|
||||
} <span class="kw">else</span> {
|
||||
<span class="ident">ServiceError</span>::<span class="ident">InternalServerError</span>
|
||||
}
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">not</span>(<span class="ident">tarpaulin_include</span>))]</span>
|
||||
<span class="kw">pub</span> <span class="kw">type</span> <span class="ident">ServiceResult</span><span class="op"><</span><span class="ident">V</span><span class="op">></span> <span class="op">=</span> <span class="ident">std</span>::<span class="ident">result</span>::<span class="prelude-ty">Result</span><span class="op"><</span><span class="ident">V</span>, <span class="ident">ServiceError</span><span class="op">></span>;
|
||||
</pre></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user