1
0
mirror of https://github.com/actix/actix-website synced 2024-12-18 18:03:12 +01:00
actix-website/static/api/actix-web/stable/actix_web/dev/trait.FromParam.html
2018-10-10 08:38:33 -07:00

59 lines
51 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `FromParam` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, FromParam"><title>actix_web::dev::FromParam - 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="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script></head><body class="rustdoc trait"><!--[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">&#9776;</div><p class='location'>Trait FromParam</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Err">Err</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.from_param">from_param</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-FromParam">PathBuf</a><a href="#impl-FromParam">u8</a><a href="#impl-FromParam">u16</a><a href="#impl-FromParam">u32</a><a href="#impl-FromParam">u64</a><a href="#impl-FromParam">usize</a><a href="#impl-FromParam">i8</a><a href="#impl-FromParam">i16</a><a href="#impl-FromParam">i32</a><a href="#impl-FromParam">i64</a><a href="#impl-FromParam">isize</a><a href="#impl-FromParam">f32</a><a href="#impl-FromParam">f64</a><a href="#impl-FromParam">String</a><a href="#impl-FromParam">IpAddr</a><a href="#impl-FromParam">Ipv4Addr</a><a href="#impl-FromParam">Ipv6Addr</a><a href="#impl-FromParam">SocketAddr</a><a href="#impl-FromParam">SocketAddrV4</a><a href="#impl-FromParam">SocketAddrV6</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'FromParam', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press S to search, ? for more options…" type="search"><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/actix_web/param.rs.html#15-21' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>FromParam</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait FromParam: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
type <a href='#associatedtype.Err' class="type">Err</a>: <a class="trait" href="../../actix_web/error/trait.ResponseError.html" title="trait actix_web::error::ResponseError">ResponseError</a>;
fn <a href='#tymethod.from_param' class='fnname'>from_param</a>(s: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;;
}</pre></div><div class='docblock'><p>A trait to abstract the idea of creating a new instance of a type from a
path parameter.</p>
</div>
<h2 id='associated-types' class='small-section-header'>
Associated Types<a href='#associated-types' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='associatedtype.Err' class='method'><span id='Err.t' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a>: <a class="trait" href="../../actix_web/error/trait.ResponseError.html" title="trait actix_web::error::ResponseError">ResponseError</a></code></span></h3><div class='docblock'><p>The associated error which can be returned from parsing.</p>
</div></div>
<h2 id='required-methods' class='small-section-header'>
Required Methods<a href='#required-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='tymethod.from_param' class='method'><span id='from_param.v' class='invisible'><code>fn <a href='#tymethod.from_param' class='fnname'>from_param</a>(s: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></h3><div class='docblock'><p>Parses a string <code>s</code> to return a value of this type.</p>
</div></div>
<h2 id='foreign-impls' class='small-section-header'>
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
</h2>
<h3 id='impl-FromParam' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></code><a href='#impl-FromParam' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#204-233' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Creates a <code>PathBuf</code> from a path parameter. The returned <code>PathBuf</code> is
percent-decoded. If a segment is equal to &quot;..&quot;, the previous segment (if
any) is skipped.</p>
<p>For security purposes, if a segment meets any of the following conditions,
an <code>Err</code> is returned indicating the condition met:</p>
<ul>
<li>Decoded segment starts with any of: <code>.</code> (except <code>..</code>), <code>*</code></li>
<li>Decoded segment ends with any of: <code>:</code>, <code>&gt;</code>, <code>&lt;</code></li>
<li>Decoded segment contains any of: <code>/</code></li>
<li>On Windows, decoded segment contains any of: ''</li>
<li>Percent-encoding results in invalid UTF8.</li>
</ul>
<p>As a result of these conditions, a <code>PathBuf</code> parsed from request path
parameter is safe to interpolate within, or use as a suffix of, a path
without additional checks.</p>
</div><div class='impl-items'><h4 id='associatedtype.Err-1' class="type"><span id='Err.t-1' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="enum" href="../../actix_web/error/enum.UriSegmentError.html" title="enum actix_web::error::UriSegmentError">UriSegmentError</a></code></span></h4>
<h4 id='method.from_param' class="method"><span id='from_param.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>, <a class="enum" href="../../actix_web/error/enum.UriSegmentError.html" title="enum actix_web::error::UriSegmentError">UriSegmentError</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#207-232' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a href='#impl-FromParam-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-2' class="type"><span id='Err.t-2' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-1' class="method"><span id='from_param.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-2' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code><a href='#impl-FromParam-2' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-3' class="type"><span id='Err.t-3' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-2' class="method"><span id='from_param.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-3' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a href='#impl-FromParam-3' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-4' class="type"><span id='Err.t-4' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-3' class="method"><span id='from_param.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-4' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code><a href='#impl-FromParam-4' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-5' class="type"><span id='Err.t-5' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-4' class="method"><span id='from_param.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-5' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a href='#impl-FromParam-5' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-6' class="type"><span id='Err.t-6' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-5' class="method"><span id='from_param.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-6' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code><a href='#impl-FromParam-6' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-7' class="type"><span id='Err.t-7' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-6' class="method"><span id='from_param.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-7' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code><a href='#impl-FromParam-7' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-8' class="type"><span id='Err.t-8' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-7' class="method"><span id='from_param.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-8' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a href='#impl-FromParam-8' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-9' class="type"><span id='Err.t-9' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-8' class="method"><span id='from_param.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-9' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code><a href='#impl-FromParam-9' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-10' class="type"><span id='Err.t-10' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-9' class="method"><span id='from_param.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-10' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code><a href='#impl-FromParam-10' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-11' class="type"><span id='Err.t-11' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-10' class="method"><span id='from_param.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-11' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code><a href='#impl-FromParam-11' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-12' class="type"><span id='Err.t-12' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-11' class="method"><span id='from_param.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-12' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a href='#impl-FromParam-12' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-13' class="type"><span id='Err.t-13' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-12' class="method"><span id='from_param.v-13' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-13' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-FromParam-13' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-14' class="type"><span id='Err.t-14' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-13' class="method"><span id='from_param.v-14' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-14' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/std/net/ip/enum.IpAddr.html" title="enum std::net::ip::IpAddr">IpAddr</a></code><a href='#impl-FromParam-14' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-15' class="type"><span id='Err.t-15' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/ip/enum.IpAddr.html" title="enum std::net::ip::IpAddr">IpAddr</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-14' class="method"><span id='from_param.v-15' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-15' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/net/ip/struct.Ipv4Addr.html" title="struct std::net::ip::Ipv4Addr">Ipv4Addr</a></code><a href='#impl-FromParam-15' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-16' class="type"><span id='Err.t-16' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/net/ip/struct.Ipv4Addr.html" title="struct std::net::ip::Ipv4Addr">Ipv4Addr</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-15' class="method"><span id='from_param.v-16' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-16' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/net/ip/struct.Ipv6Addr.html" title="struct std::net::ip::Ipv6Addr">Ipv6Addr</a></code><a href='#impl-FromParam-16' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-17' class="type"><span id='Err.t-17' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/net/ip/struct.Ipv6Addr.html" title="struct std::net::ip::Ipv6Addr">Ipv6Addr</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-16' class="method"><span id='from_param.v-17' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-17' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a></code><a href='#impl-FromParam-17' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-18' class="type"><span id='Err.t-18' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-17' class="method"><span id='from_param.v-18' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-18' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/net/addr/struct.SocketAddrV4.html" title="struct std::net::addr::SocketAddrV4">SocketAddrV4</a></code><a href='#impl-FromParam-18' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-19' class="type"><span id='Err.t-19' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/net/addr/struct.SocketAddrV4.html" title="struct std::net::addr::SocketAddrV4">SocketAddrV4</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-18' class="method"><span id='from_param.v-19' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h3 id='impl-FromParam-19' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../actix_web/dev/trait.FromParam.html" title="trait actix_web::dev::FromParam">FromParam</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/net/addr/struct.SocketAddrV6.html" title="struct std::net::addr::SocketAddrV6">SocketAddrV6</a></code><a href='#impl-FromParam-19' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#237-243' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err-20' class="type"><span id='Err.t-20' class='invisible'><code>type <a href='#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../../actix_web/error/struct.InternalError.html" title="struct actix_web::error::InternalError">InternalError</a>&lt;&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/net/addr/struct.SocketAddrV6.html" title="struct std::net::addr::SocketAddrV6">SocketAddrV6</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html" title="trait core::str::FromStr">FromStr</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/str/trait.FromStr.html#associatedtype.Err" title="type core::str::FromStr::Err">Err</a>&gt;</code></span></h4>
<h4 id='method.from_param-19' class="method"><span id='from_param.v-20' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.from_param' class='fnname'>from_param</a>(val: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="type" href="../../actix_web/dev/trait.FromParam.html#associatedtype.Err" title="type actix_web::dev::FromParam::Err">Err</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/actix_web/param.rs.html#239-242' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'></div><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
src="../../implementors/actix_web/dev/trait.FromParam.js">
</script></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "actix_web";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>