Files
mercator_service/actix_server/trait.ServiceFactory.html

7 lines
7.6 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 `ServiceFactory` trait in crate `actix_server`."><meta name="keywords" content="rust, rustlang, rust-lang, ServiceFactory"><title>actix_server::ServiceFactory - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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><a href='../actix_server/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait ServiceFactory</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.NewService">NewService</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.create">create</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>actix_server</a></p><script>window.sidebarCurrent = {name: 'ServiceFactory', 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"><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><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_server/services.rs.html#26-30' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>actix_server</a>::<wbr><a class="trait" href=''>ServiceFactory</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait ServiceFactory&lt;Stream:&nbsp;FromStream&gt;: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static {
type <a href='#associatedtype.NewService' class="type">NewService</a>: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>&lt;Config = <a class="struct" href="../actix_server/struct.ServerConfig.html" title="struct actix_server::ServerConfig">ServerConfig</a>, Request = <a class="struct" href="../actix_server/struct.Io.html" title="struct actix_server::Io">Io</a>&lt;Stream&gt;&gt;;
fn <a href='#tymethod.create' class='fnname'>create</a>(&amp;self) -&gt; Self::<a class="type" href="../actix_server/trait.ServiceFactory.html#associatedtype.NewService" title="type actix_server::ServiceFactory::NewService">NewService</a>;
}</pre></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.NewService' class='method'><code id='NewService.t'>type <a href='#associatedtype.NewService' class="type">NewService</a>: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>&lt;Config = <a class="struct" href="../actix_server/struct.ServerConfig.html" title="struct actix_server::ServerConfig">ServerConfig</a>, Request = <a class="struct" href="../actix_server/struct.Io.html" title="struct actix_server::Io">Io</a>&lt;Stream&gt;&gt;</code></h3></div><span class='loading-content'>Loading content...</span>
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.create' class='method'><code id='create.v'>fn <a href='#tymethod.create' class='fnname'>create</a>(&amp;self) -&gt; Self::<a class="type" href="../actix_server/trait.ServiceFactory.html#associatedtype.NewService" title="type actix_server::ServiceFactory::NewService">NewService</a></code></h3></div><span class='loading-content'>Loading content...</span>
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-ServiceFactory%3CI%3E' class='impl'><code class='in-band'>impl&lt;F, T, I&gt; ServiceFactory&lt;I&gt; for F <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -&gt; T + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../actix_service/trait.NewService.html" title="trait actix_service::NewService">NewService</a>&lt;Config = <a class="struct" href="../actix_server/struct.ServerConfig.html" title="struct actix_server::ServerConfig">ServerConfig</a>, Request = <a class="struct" href="../actix_server/struct.Io.html" title="struct actix_server::Io">Io</a>&lt;I&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: FromStream,&nbsp;</span></code><a href='#impl-ServiceFactory%3CI%3E' class='anchor'></a><a class='srclink' href='../src/actix_server/services.rs.html#175-186' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.NewService-1' class="type"><code id='NewService.t-1'>type <a href='#associatedtype.NewService-1' class="type">NewService</a> = T</code></h4><h4 id='method.create' class="method hidden"><code id='create.v-1'>fn <a href='#method.create' class='fnname'>create</a>(&amp;self) -&gt; T</code><a class='srclink' href='../src/actix_server/services.rs.html#183-185' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/actix_server/trait.ServiceFactory.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "actix_server";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>