style.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>grpc.framework.common.style &mdash; grpcio 1.2.0 documentation</title>
  8. <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" />
  9. <link rel="index" title="Index"
  10. href="../../../../genindex.html"/>
  11. <link rel="search" title="Search" href="../../../../search.html"/>
  12. <link rel="top" title="grpcio 1.2.0 documentation" href="../../../../index.html"/>
  13. <link rel="up" title="grpc" href="../../../grpc.html"/>
  14. <script src="../../../../_static/js/modernizr.min.js"></script>
  15. </head>
  16. <body class="wy-body-for-nav" role="document">
  17. <div class="wy-grid-for-nav">
  18. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  19. <div class="wy-side-scroll">
  20. <div class="wy-side-nav-search">
  21. <a href="../../../../index.html" class="icon icon-home"> grpcio
  22. </a>
  23. <div class="version">
  24. 1.2.0
  25. </div>
  26. <div role="search">
  27. <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
  28. <input type="text" name="q" placeholder="Search docs" />
  29. <input type="hidden" name="check_keywords" value="yes" />
  30. <input type="hidden" name="area" value="default" />
  31. </form>
  32. </div>
  33. </div>
  34. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  35. <p class="caption"><span class="caption-text">Contents:</span></p>
  36. <ul>
  37. <li class="toctree-l1"><a class="reference internal" href="../../../../grpc.html">grpc package</a></li>
  38. <li class="toctree-l1"><a class="reference internal" href="../../../../grpc.html#glossary">Glossary</a></li>
  39. </ul>
  40. </div>
  41. </div>
  42. </nav>
  43. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  44. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  45. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  46. <a href="../../../../index.html">grpcio</a>
  47. </nav>
  48. <div class="wy-nav-content">
  49. <div class="rst-content">
  50. <div role="navigation" aria-label="breadcrumbs navigation">
  51. <ul class="wy-breadcrumbs">
  52. <li><a href="../../../../index.html">Docs</a> &raquo;</li>
  53. <li><a href="../../../index.html">Module code</a> &raquo;</li>
  54. <li><a href="../../../grpc.html">grpc</a> &raquo;</li>
  55. <li>grpc.framework.common.style</li>
  56. <li class="wy-breadcrumbs-aside">
  57. </li>
  58. </ul>
  59. <hr/>
  60. </div>
  61. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  62. <div itemprop="articleBody">
  63. <h1>Source code for grpc.framework.common.style</h1><div class="highlight"><pre>
  64. <span></span><span class="c1"># Copyright 2015, Google Inc.</span>
  65. <span class="c1"># All rights reserved.</span>
  66. <span class="c1">#</span>
  67. <span class="c1"># Redistribution and use in source and binary forms, with or without</span>
  68. <span class="c1"># modification, are permitted provided that the following conditions are</span>
  69. <span class="c1"># met:</span>
  70. <span class="c1">#</span>
  71. <span class="c1"># * Redistributions of source code must retain the above copyright</span>
  72. <span class="c1"># notice, this list of conditions and the following disclaimer.</span>
  73. <span class="c1"># * Redistributions in binary form must reproduce the above</span>
  74. <span class="c1"># copyright notice, this list of conditions and the following disclaimer</span>
  75. <span class="c1"># in the documentation and/or other materials provided with the</span>
  76. <span class="c1"># distribution.</span>
  77. <span class="c1"># * Neither the name of Google Inc. nor the names of its</span>
  78. <span class="c1"># contributors may be used to endorse or promote products derived from</span>
  79. <span class="c1"># this software without specific prior written permission.</span>
  80. <span class="c1">#</span>
  81. <span class="c1"># THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span>
  82. <span class="c1"># &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span>
  83. <span class="c1"># LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span>
  84. <span class="c1"># A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span>
  85. <span class="c1"># OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span>
  86. <span class="c1"># SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span>
  87. <span class="c1"># LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span>
  88. <span class="c1"># DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span>
  89. <span class="c1"># THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
  90. <span class="c1"># (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
  91. <span class="c1"># OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
  92. <span class="sd">&quot;&quot;&quot;Defines an enum for classifying RPC methods by control flow semantics.&quot;&quot;&quot;</span>
  93. <span class="kn">import</span> <span class="nn">enum</span>
  94. <span class="nd">@enum</span><span class="o">.</span><span class="n">unique</span>
  95. <div class="viewcode-block" id="Service"><a class="viewcode-back" href="../../../../grpc.framework.common.html#grpc.framework.common.style.Service">[docs]</a><span class="k">class</span> <span class="nc">Service</span><span class="p">(</span><span class="n">enum</span><span class="o">.</span><span class="n">Enum</span><span class="p">):</span>
  96. <span class="sd">&quot;&quot;&quot;Describes the control flow style of RPC method implementation.&quot;&quot;&quot;</span>
  97. <span class="n">INLINE</span> <span class="o">=</span> <span class="s1">&#39;inline&#39;</span>
  98. <span class="n">EVENT</span> <span class="o">=</span> <span class="s1">&#39;event&#39;</span></div>
  99. </pre></div>
  100. </div>
  101. <div class="articleComments">
  102. </div>
  103. </div>
  104. <footer>
  105. <hr/>
  106. <div role="contentinfo">
  107. <p>
  108. &copy; Copyright 2016, The gRPC Authors.
  109. </p>
  110. </div>
  111. 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>.
  112. </footer>
  113. </div>
  114. </div>
  115. </section>
  116. </div>
  117. <script type="text/javascript">
  118. var DOCUMENTATION_OPTIONS = {
  119. URL_ROOT:'../../../../',
  120. VERSION:'1.2.0',
  121. COLLAPSE_INDEX:false,
  122. FILE_SUFFIX:'.html',
  123. HAS_SOURCE: true,
  124. SOURCELINK_SUFFIX: '.txt'
  125. };
  126. </script>
  127. <script type="text/javascript" src="../../../../_static/jquery.js"></script>
  128. <script type="text/javascript" src="../../../../_static/underscore.js"></script>
  129. <script type="text/javascript" src="../../../../_static/doctools.js"></script>
  130. <script type="text/javascript" src="../../../../_static/js/theme.js"></script>
  131. <script type="text/javascript">
  132. jQuery(function () {
  133. SphinxRtdTheme.StickyNav.enable();
  134. });
  135. </script>
  136. </body>
  137. </html>