| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 | 
<!DOCTYPE html><!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--><!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--><head>  <meta charset="utf-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <title>grpc.framework.crust package — grpcio 0.13.1rc1 documentation</title>                          <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />          <link rel="top" title="grpcio 0.13.1rc1 documentation" href="index.html"/>        <link rel="up" title="grpc.framework package" href="grpc.framework.html"/>        <link rel="next" title="grpc.framework.face package" href="grpc.framework.face.html"/>        <link rel="prev" title="grpc.framework.core package" href="grpc.framework.core.html"/>     <script src="_static/js/modernizr.min.js"></script></head><body class="wy-body-for-nav" role="document">  <div class="wy-grid-for-nav">        <nav data-toggle="wy-nav-shift" class="wy-nav-side">      <div class="wy-side-scroll">        <div class="wy-side-nav-search">                                <a href="index.html" class="icon icon-home"> grpcio                              </a>                                                <div class="version">                0.13.1rc1              </div>                                <div role="search">  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">    <input type="text" name="q" placeholder="Search docs" />    <input type="hidden" name="check_keywords" value="yes" />    <input type="hidden" name="area" value="default" />  </form></div>                  </div>        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">                                                  <ul class="current"><li class="toctree-l1 current"><a class="reference internal" href="grpc.html">grpc package</a><ul class="current"><li class="toctree-l2 current"><a class="reference internal" href="grpc.html#subpackages">Subpackages</a><ul class="current"><li class="toctree-l3"><a class="reference internal" href="grpc.beta.html">grpc.beta package</a></li><li class="toctree-l3"><a class="reference internal" href="grpc.early_adopter.html">grpc.early_adopter package</a></li><li class="toctree-l3 current"><a class="reference internal" href="grpc.framework.html">grpc.framework package</a><ul class="current"><li class="toctree-l4 current"><a class="reference internal" href="grpc.framework.html#subpackages">Subpackages</a></li><li class="toctree-l4"><a class="reference internal" href="grpc.framework.html#module-grpc.framework">Module contents</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="grpc.html#module-grpc">Module contents</a></li></ul></li></ul>                              </div>      </div>    </nav>    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">            <nav class="wy-nav-top" role="navigation" aria-label="top navigation">        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>        <a href="index.html">grpcio</a>      </nav>            <div class="wy-nav-content">        <div class="rst-content">           <div role="navigation" aria-label="breadcrumbs navigation">  <ul class="wy-breadcrumbs">    <li><a href="index.html">Docs</a> »</li>                <li><a href="grpc.html">grpc package</a> »</li>                <li><a href="grpc.framework.html">grpc.framework package</a> »</li>          <li>grpc.framework.crust package</li>      <li class="wy-breadcrumbs-aside">                              <a href="_sources/grpc.framework.crust.txt" rel="nofollow"> View page source</a>                        </li>  </ul>  <hr/></div>          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">           <div itemprop="articleBody">              <div class="section" id="grpc-framework-crust-package"><h1>grpc.framework.crust package<a class="headerlink" href="#grpc-framework-crust-package" title="Permalink to this headline">¶</a></h1><div class="section" id="submodules"><h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2></div><div class="section" id="module-grpc.framework.crust.implementations"><span id="grpc-framework-crust-implementations-module"></span><h2>grpc.framework.crust.implementations module<a class="headerlink" href="#module-grpc.framework.crust.implementations" title="Permalink to this headline">¶</a></h2><p>Entry points into the Crust layer of RPC Framework.</p><dl class="function"><dt id="grpc.framework.crust.implementations.dynamic_stub"><code class="descclassname">grpc.framework.crust.implementations.</code><code class="descname">dynamic_stub</code><span class="sig-paren">(</span><em>end</em>, <em>group</em>, <em>cardinalities</em>, <em>pool</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/crust/implementations.html#dynamic_stub"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.crust.implementations.dynamic_stub" title="Permalink to this definition">¶</a></dt><dd><p>Creates an face.DynamicStub.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>end</strong> – A base.End.</li><li><strong>group</strong> – The group identifier for all RPCs to be made with the createdface.DynamicStub.</li><li><strong>cardinalities</strong> – A dict from method identifier to cardinality.Cardinalityvalue identifying the cardinality of every RPC method to be supported bythe created face.DynamicStub.</li><li><strong>pool</strong> – A futures.ThreadPoolExecutor.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A face.DynamicStub that performs RPCs via the given base.End.</p></td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.crust.implementations.generic_stub"><code class="descclassname">grpc.framework.crust.implementations.</code><code class="descname">generic_stub</code><span class="sig-paren">(</span><em>end</em>, <em>pool</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/crust/implementations.html#generic_stub"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.crust.implementations.generic_stub" title="Permalink to this definition">¶</a></dt><dd><p>Creates an face.GenericStub.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>end</strong> – A base.End.</li><li><strong>pool</strong> – A futures.ThreadPoolExecutor.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A face.GenericStub that performs RPCs via the given base.End.</p></td></tr></tbody></table></dd></dl><dl class="function"><dt id="grpc.framework.crust.implementations.servicer"><code class="descclassname">grpc.framework.crust.implementations.</code><code class="descname">servicer</code><span class="sig-paren">(</span><em>method_implementations</em>, <em>multi_method_implementation</em>, <em>pool</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/grpc/framework/crust/implementations.html#servicer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#grpc.framework.crust.implementations.servicer" title="Permalink to this definition">¶</a></dt><dd><p>Creates a base.Servicer.</p><p>It is guaranteed that any passed face.MultiMethodImplementation willonly be called to service an RPC if there is noface.MethodImplementation for the RPC method in the passedmethod_implementations dictionary.</p><table class="docutils field-list" frame="void" rules="none"><col class="field-name" /><col class="field-body" /><tbody valign="top"><tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"><li><strong>method_implementations</strong> – A dictionary from RPC method name toface.MethodImplementation object to be used to service the namedRPC method.</li><li><strong>multi_method_implementation</strong> – An face.MultiMethodImplementation to beused to service any RPCs not serviced by theface.MethodImplementations given in the method_implementationsdictionary, or None.</li><li><strong>pool</strong> – A thread pool.</li></ul></td></tr><tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A base.Servicer that services RPCs via the given implementations.</p></td></tr></tbody></table></dd></dl></div><div class="section" id="module-grpc.framework.crust"><span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-grpc.framework.crust" title="Permalink to this headline">¶</a></h2></div></div>           </div>          </div>          <footer>      <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">              <a href="grpc.framework.face.html" class="btn btn-neutral float-right" title="grpc.framework.face package" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>                    <a href="grpc.framework.core.html" class="btn btn-neutral" title="grpc.framework.core package" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>          </div>    <hr/>  <div role="contentinfo">    <p>        © Copyright 2016, Author.    </p>  </div>  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer>        </div>      </div>    </section>  </div>        <script type="text/javascript">        var DOCUMENTATION_OPTIONS = {            URL_ROOT:'./',            VERSION:'0.13.1rc1',            COLLAPSE_INDEX:false,            FILE_SUFFIX:'.html',            HAS_SOURCE:  true        };    </script>      <script type="text/javascript" src="_static/jquery.js"></script>      <script type="text/javascript" src="_static/underscore.js"></script>      <script type="text/javascript" src="_static/doctools.js"></script>          <script type="text/javascript" src="_static/js/theme.js"></script>        <script type="text/javascript">      jQuery(function () {          SphinxRtdTheme.StickyNav.enable();      });  </script>   </body></html>
 |