mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-25 19:09:58 +00:00
deploy: de38ae62916547ad097c066f94a32e9ba7790eeb
This commit is contained in:
commit
9a86359447
28502 changed files with 1261284 additions and 0 deletions
8
tracing/level_filters/constant.STATIC_MAX_LEVEL.html
Normal file
8
tracing/level_filters/constant.STATIC_MAX_LEVEL.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<!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="The statically configured maximum trace level."><title>STATIC_MAX_LEVEL in tracing::level_filters - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.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-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="tracing" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[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="../../tracing/index.html"><img src="https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../tracing/index.html"><img src="https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png" alt="logo"></a><h2><a href="../../tracing/index.html">tracing</a><span class="version">0.1.41</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In tracing::<wbr>level_<wbr>filters</a></h2></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"><span class="rustdoc-breadcrumbs"><a href="../index.html">tracing</a>::<wbr><a href="index.html">level_filters</a></span><h1>Constant <span class="constant">STATIC_MAX_LEVEL</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/tracing/level_filters.rs.html#66">Source</a> </span></div><pre class="rust item-decl"><code>pub const STATIC_MAX_LEVEL: <a class="struct" href="struct.LevelFilter.html" title="struct tracing::level_filters::LevelFilter">LevelFilter</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The statically configured maximum trace level.</p>
|
||||
<p>See the <a href="index.html#compile-time-filters" title="mod tracing::level_filters">module-level documentation</a> for information on how to configure
|
||||
this.</p>
|
||||
<p>This value is checked by the <code>event!</code> and <code>span!</code> macros. Code that
|
||||
manually constructs events or spans via the <code>Event::record</code> function or
|
||||
<code>Span</code> constructors should compare the level against this value to
|
||||
determine if those spans or events are enabled.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
40
tracing/level_filters/index.html
Normal file
40
tracing/level_filters/index.html
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<!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="Trace verbosity level filtering."><title>tracing::level_filters - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.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-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="tracing" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[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="../../tracing/index.html"><img src="https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../tracing/index.html"><img src="https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png" alt="logo"></a><h2><a href="../../tracing/index.html">tracing</a><span class="version">0.1.41</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module level_<wbr>filters</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#compile-time-filters" title="Compile time filters">Compile time filters</a><ul><li><a href="#notes" title="Notes">Notes</a></li></ul></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#constants" title="Constants">Constants</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate tracing</a></h2></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"><span class="rustdoc-breadcrumbs"><a href="../index.html">tracing</a></span><h1>Module <span>level_filters</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/tracing/level_filters.rs.html#1-98">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trace verbosity level filtering.</p>
|
||||
<h2 id="compile-time-filters"><a class="doc-anchor" href="#compile-time-filters">§</a>Compile time filters</h2>
|
||||
<p>Trace verbosity levels can be statically disabled at compile time via Cargo
|
||||
features, similar to the <a href="https://docs.rs/log/latest/log/#compile-time-filters"><code>log</code> crate</a>. Trace instrumentation at disabled
|
||||
levels will be skipped and will not even be present in the resulting binary
|
||||
unless the verbosity level is specified dynamically. This level is
|
||||
configured separately for release and debug builds. The features are:</p>
|
||||
<ul>
|
||||
<li><code>max_level_off</code></li>
|
||||
<li><code>max_level_error</code></li>
|
||||
<li><code>max_level_warn</code></li>
|
||||
<li><code>max_level_info</code></li>
|
||||
<li><code>max_level_debug</code></li>
|
||||
<li><code>max_level_trace</code></li>
|
||||
<li><code>release_max_level_off</code></li>
|
||||
<li><code>release_max_level_error</code></li>
|
||||
<li><code>release_max_level_warn</code></li>
|
||||
<li><code>release_max_level_info</code></li>
|
||||
<li><code>release_max_level_debug</code></li>
|
||||
<li><code>release_max_level_trace</code></li>
|
||||
</ul>
|
||||
<p>These features control the value of the <code>STATIC_MAX_LEVEL</code> constant. The
|
||||
instrumentation macros macros check this value before recording an event or
|
||||
constructing a span. By default, no levels are disabled.</p>
|
||||
<p>For example, a crate can disable trace level instrumentation in debug builds
|
||||
and trace, debug, and info level instrumentation in release builds with the
|
||||
following configuration:</p>
|
||||
<div class="example-wrap"><pre class="language-toml"><code>[dependencies]
|
||||
tracing = { version = "0.1", features = ["max_level_debug", "release_max_level_warn"] }</code></pre></div><h3 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h3>
|
||||
<p>Please note that <code>tracing</code>’s static max level features do <em>not</em> control the
|
||||
<a href="https://docs.rs/log/"><code>log</code></a> records that may be emitted when <a href="https://docs.rs/tracing/latest/tracing/#emitting-log-records"><code>tracing</code>’s “log” feature flag</a> is
|
||||
enabled. This is to allow <code>tracing</code> to be disabled entirely at compile time
|
||||
while still emitting <code>log</code> records — such as when a library using
|
||||
<code>tracing</code> is used by an application using <code>log</code> that doesn’t want to
|
||||
generate any <code>tracing</code>-related code, but does want to collect <code>log</code> records.</p>
|
||||
<p>This means that if the “log” feature is in use, some code may be generated
|
||||
for <code>log</code> records emitted by disabled <code>tracing</code> events. If this is not
|
||||
desirable, <code>log</code> records may be disabled separately using <a href="https://docs.rs/log/latest/log/#compile-time-filters"><code>log</code>’s static
|
||||
max level features</a>.</p>
|
||||
</div></details><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.LevelFilter.html" title="struct tracing::level_filters::LevelFilter">Level<wbr>Filter</a></div><div class="desc docblock-short">A filter comparable to a verbosity <a href="../struct.Level.html" title="struct tracing::Level"><code>Level</code></a>.</div></li><li><div class="item-name"><a class="struct" href="struct.ParseLevelFilterError.html" title="struct tracing::level_filters::ParseLevelFilterError">Parse<wbr>Level<wbr>Filter<wbr>Error</a></div><div class="desc docblock-short">Indicates that a string could not be parsed to a valid level.</div></li></ul><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="constant" href="constant.STATIC_MAX_LEVEL.html" title="constant tracing::level_filters::STATIC_MAX_LEVEL">STATIC_<wbr>MAX_<wbr>LEVEL</a></div><div class="desc docblock-short">The statically configured maximum trace level.</div></li></ul></section></div></main></body></html>
|
||||
1
tracing/level_filters/sidebar-items.js
Normal file
1
tracing/level_filters/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"constant":["STATIC_MAX_LEVEL"],"struct":["LevelFilter","ParseLevelFilterError"]};
|
||||
73
tracing/level_filters/struct.LevelFilter.html
Normal file
73
tracing/level_filters/struct.LevelFilter.html
Normal file
File diff suppressed because one or more lines are too long
20
tracing/level_filters/struct.ParseLevelFilterError.html
Normal file
20
tracing/level_filters/struct.ParseLevelFilterError.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue