mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-18 18:51:49 +01:00
3 lines
10 KiB
HTML
3 lines
10 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="See `Service` docs for information on this crate’s foundational trait."><title>actix_service - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b778ab399e080a4b.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_service" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0-nightly (7608018cb 2024-09-29)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-54bc299d2a5e4e43.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-0111fcff984fae8f.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../actix_service/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../actix_service/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../actix_service/index.html">actix_<wbr>service</a><span class="version">2.0.2</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#modules">Crate Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#macros" title="Macros">Macros</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>actix_service</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/actix_service/lib.rs.html#1-325">source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>See <a href="trait.Service.html" title="trait actix_service::Service"><code>Service</code></a> docs for information on this crate’s foundational trait.</p>
|
||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="boxed/index.html" title="mod actix_service::boxed">boxed</a></div><div class="desc docblock-short">Trait object forms of services and service factories.</div></li></ul><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="macro" href="macro.always_ready.html" title="macro actix_service::always_ready">always_<wbr>ready</a></div><div class="desc docblock-short">An implementation of <a href=""><code>poll_ready</code></a> that always signals readiness.</div></li><li><div class="item-name"><a class="macro" href="macro.forward_ready.html" title="macro actix_service::forward_ready">forward_<wbr>ready</a></div><div class="desc docblock-short">An implementation of <a href="trait.Service.html#tymethod.poll_ready" title="method actix_service::Service::poll_ready"><code>poll_ready</code></a> that forwards readiness checks to a
|
||
named struct field.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.ApplyTransform.html" title="struct actix_service::ApplyTransform">Apply<wbr>Transform</a></div><div class="desc docblock-short">Apply a <a href="trait.Transform.html" title="trait actix_service::Transform"><code>Transform</code></a> to a <a href="trait.Service.html" title="trait actix_service::Service"><code>Service</code></a>.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.IntoService.html" title="trait actix_service::IntoService">Into<wbr>Service</a></div><div class="desc docblock-short">Trait for types that can be converted to a <code>Service</code></div></li><li><div class="item-name"><a class="trait" href="trait.IntoServiceFactory.html" title="trait actix_service::IntoServiceFactory">Into<wbr>Service<wbr>Factory</a></div><div class="desc docblock-short">Trait for types that can be converted to a <code>ServiceFactory</code></div></li><li><div class="item-name"><a class="trait" href="trait.Service.html" title="trait actix_service::Service">Service</a></div><div class="desc docblock-short">An asynchronous operation from <code>Request</code> to a <code>Response</code>.</div></li><li><div class="item-name"><a class="trait" href="trait.ServiceExt.html" title="trait actix_service::ServiceExt">Service<wbr>Ext</a></div><div class="desc docblock-short">An extension trait for <a href="trait.Service.html" title="trait actix_service::Service"><code>Service</code></a>s that provides a variety of convenient adapters.</div></li><li><div class="item-name"><a class="trait" href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory">Service<wbr>Factory</a></div><div class="desc docblock-short">Factory for creating <code>Service</code>s.</div></li><li><div class="item-name"><a class="trait" href="trait.ServiceFactoryExt.html" title="trait actix_service::ServiceFactoryExt">Service<wbr>Factory<wbr>Ext</a></div><div class="desc docblock-short">An extension trait for <a href="trait.ServiceFactory.html" title="trait actix_service::ServiceFactory"><code>ServiceFactory</code></a>s that provides a variety of convenient adapters.</div></li><li><div class="item-name"><a class="trait" href="trait.Transform.html" title="trait actix_service::Transform">Transform</a></div><div class="desc docblock-short">Defines the interface of a service factory that wraps inner service during construction.</div></li><li><div class="item-name"><a class="trait" href="trait.TransformExt.html" title="trait actix_service::TransformExt">Transform<wbr>Ext</a></div><div class="desc docblock-short">An extension trait for <a href="trait.Transform.html" title="trait actix_service::Transform"><code>Transform</code></a>s that provides a variety of convenient adapters.</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.apply.html" title="fn actix_service::apply">apply</a></div><div class="desc docblock-short">Apply a <a href="trait.Transform.html" title="trait actix_service::Transform"><code>Transform</code></a> to a <a href="trait.Service.html" title="trait actix_service::Service"><code>Service</code></a>.</div></li><li><div class="item-name"><a class="fn" href="fn.apply_cfg.html" title="fn actix_service::apply_cfg">apply_<wbr>cfg</a></div><div class="desc docblock-short">Convert <code>Fn(Config, &Service1) -> Future<Service2></code> fn to a service factory.</div></li><li><div class="item-name"><a class="fn" href="fn.apply_cfg_factory.html" title="fn actix_service::apply_cfg_factory">apply_<wbr>cfg_<wbr>factory</a></div><div class="desc docblock-short">Convert <code>Fn(Config, &ServiceFactory1) -> Future<ServiceFactory2></code> fn to a service factory.</div></li><li><div class="item-name"><a class="fn" href="fn.apply_fn.html" title="fn actix_service::apply_fn">apply_<wbr>fn</a></div><div class="desc docblock-short">Apply transform function to a service.</div></li><li><div class="item-name"><a class="fn" href="fn.apply_fn_factory.html" title="fn actix_service::apply_fn_factory">apply_<wbr>fn_<wbr>factory</a></div><div class="desc docblock-short">Service factory that produces <code>apply_fn</code> service.</div></li><li><div class="item-name"><a class="fn" href="fn.fn_factory.html" title="fn actix_service::fn_factory">fn_<wbr>factory</a></div><div class="desc docblock-short">Create <code>ServiceFactory</code> for function that can produce services</div></li><li><div class="item-name"><a class="fn" href="fn.fn_factory_with_config.html" title="fn actix_service::fn_factory_with_config">fn_<wbr>factory_<wbr>with_<wbr>config</a></div><div class="desc docblock-short">Create <code>ServiceFactory</code> for function that accepts config argument and can produce services</div></li><li><div class="item-name"><a class="fn" href="fn.fn_service.html" title="fn actix_service::fn_service">fn_<wbr>service</a></div><div class="desc docblock-short">Create <code>ServiceFactory</code> for function that can act as a <code>Service</code></div></li><li><div class="item-name"><a class="fn" href="fn.into_service.html" title="fn actix_service::into_service">into_<wbr>service</a></div><div class="desc docblock-short">Convert object of type <code>U</code> to a service <code>S</code></div></li><li><div class="item-name"><a class="fn" href="fn.map_config.html" title="fn actix_service::map_config">map_<wbr>config</a></div><div class="desc docblock-short">Adapt external config argument to a config for provided service factory</div></li><li><div class="item-name"><a class="fn" href="fn.unit_config.html" title="fn actix_service::unit_config">unit_<wbr>config</a></div><div class="desc docblock-short">Replace config with unit.</div></li></ul></section></div></main></body></html> |