pnmixer-rust/alsa/mixer/struct.Selem.html
2017-07-15 01:30:16 +02:00

176 lines
29 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 `Selem` struct in crate `alsa`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Selem">
<title>alsa::mixer::Selem - Rust</title>
<link rel="stylesheet" type="text/css" href="../../normalize.css">
<link rel="stylesheet" type="text/css" href="../../rustdoc.css">
<link rel="stylesheet" type="text/css" href="../../main.css">
</head>
<body class="rustdoc struct">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<p class='location'>Struct Selem</p><div class="block items"><ul><li><a href="#methods">Methods</a></li><li><a href="#deref-methods">Methods from Deref&lt;Target=Elem<'a>&gt;</a></li><li><a href="#implementations">Trait Implementations</a></li></ul></div><p class='location'><a href='../index.html'>alsa</a>::<wbr><a href='index.html'>mixer</a></p><script>window.sidebarCurrent = {name: 'Selem', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</nav>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Struct <a href='../index.html'>alsa</a>::<wbr><a href='index.html'>mixer</a>::<wbr><a class="struct" href=''>Selem</a></span><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/alsa/mixer.rs.html#201' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'>pub struct Selem&lt;'a&gt;(_);</pre><div class='docblock'><p>Wraps an Elem as a Selem</p>
</div><h2 id='methods'>Methods</h2><h3 class='impl'><span class='in-band'><code>impl&lt;'a&gt; <a class="struct" href="../../alsa/mixer/struct.Selem.html" title="struct alsa::mixer::Selem">Selem</a>&lt;'a&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/alsa/mixer.rs.html#203-427' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><code>fn <a href='#method.new' class='fnname'>new</a>(elem: <a class="struct" href="../../alsa/mixer/struct.Elem.html" title="struct alsa::mixer::Elem">Elem</a>&lt;'a&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../alsa/mixer/struct.Selem.html" title="struct alsa::mixer::Selem">Selem</a>&lt;'a&gt;&gt;</code></span></h4>
<div class='docblock'><p>Creates a Selem by wrapping <code>elem</code>.</p>
</div><h4 id='method.register' class="method"><span id='register.v' class='invisible'><code>fn <a href='#method.register' class='fnname'>register</a>(mixer: &amp;mut <a class="struct" href="../../alsa/mixer/struct.Mixer.html" title="struct alsa::mixer::Mixer">Mixer</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<div class='docblock'><p>TODO: This function might change to support regopt and to return the mixer class</p>
</div><h4 id='method.get_id' class="method"><span id='get_id.v' class='invisible'><code>fn <a href='#method.get_id' class='fnname'>get_id</a>(&amp;self) -&gt; <a class="struct" href="../../alsa/mixer/struct.SelemId.html" title="struct alsa::mixer::SelemId">SelemId</a></code></span></h4>
<h4 id='method.has_capture_volume' class="method"><span id='has_capture_volume.v' class='invisible'><code>fn <a href='#method.has_capture_volume' class='fnname'>has_capture_volume</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.has_capture_switch' class="method"><span id='has_capture_switch.v' class='invisible'><code>fn <a href='#method.has_capture_switch' class='fnname'>has_capture_switch</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.has_playback_volume' class="method"><span id='has_playback_volume.v' class='invisible'><code>fn <a href='#method.has_playback_volume' class='fnname'>has_playback_volume</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.has_playback_switch' class="method"><span id='has_playback_switch.v' class='invisible'><code>fn <a href='#method.has_playback_switch' class='fnname'>has_playback_switch</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.can_capture' class="method"><span id='can_capture.v' class='invisible'><code>fn <a href='#method.can_capture' class='fnname'>can_capture</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.can_playback' class="method"><span id='can_playback.v' class='invisible'><code>fn <a href='#method.can_playback' class='fnname'>can_playback</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.has_volume' class="method"><span id='has_volume.v' class='invisible'><code>fn <a href='#method.has_volume' class='fnname'>has_volume</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.get_capture_volume_range' class="method"><span id='get_capture_volume_range.v' class='invisible'><code>fn <a href='#method.get_capture_volume_range' class='fnname'>get_capture_volume_range</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
<div class='docblock'><p>returns range for capture volume as (min, max) values</p>
</div><h4 id='method.get_capture_db_range' class="method"><span id='get_capture_db_range.v' class='invisible'><code>fn <a href='#method.get_capture_db_range' class='fnname'>get_capture_db_range</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>, <a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
<div class='docblock'><p>returns (min, max) values.</p>
</div><h4 id='method.get_playback_volume_range' class="method"><span id='get_playback_volume_range.v' class='invisible'><code>fn <a href='#method.get_playback_volume_range' class='fnname'>get_playback_volume_range</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
<div class='docblock'><p>returns (min, max) values.</p>
</div><h4 id='method.get_playback_db_range' class="method"><span id='get_playback_db_range.v' class='invisible'><code>fn <a href='#method.get_playback_db_range' class='fnname'>get_playback_db_range</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>, <a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
<div class='docblock'><p>returns (min, max) values.</p>
</div><h4 id='method.is_playback_mono' class="method"><span id='is_playback_mono.v' class='invisible'><code>fn <a href='#method.is_playback_mono' class='fnname'>is_playback_mono</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.has_capture_channel' class="method"><span id='has_capture_channel.v' class='invisible'><code>fn <a href='#method.has_capture_channel' class='fnname'>has_capture_channel</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.has_playback_channel' class="method"><span id='has_playback_channel.v' class='invisible'><code>fn <a href='#method.has_playback_channel' class='fnname'>has_playback_channel</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.channel_name' class="method"><span id='channel_name.v' class='invisible'><code>fn <a href='#method.channel_name' class='fnname'>channel_name</a>(channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</code></span></h4>
<div class='docblock'><p>Gets name from snd_mixer_selem_channel_name</p>
</div><h4 id='method.get_playback_volume' class="method"><span id='get_playback_volume.v' class='invisible'><code>fn <a href='#method.get_playback_volume' class='fnname'>get_playback_volume</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>&gt;</code></span></h4>
<h4 id='method.get_playback_vol_db' class="method"><span id='get_playback_vol_db.v' class='invisible'><code>fn <a href='#method.get_playback_vol_db' class='fnname'>get_playback_vol_db</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>&gt;</code></span></h4>
<div class='docblock'><p>returns volume in millibels.</p>
</div><h4 id='method.ask_playback_vol_db' class="method"><span id='ask_playback_vol_db.v' class='invisible'><code>fn <a href='#method.ask_playback_vol_db' class='fnname'>ask_playback_vol_db</a>(&amp;self, volume: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>&gt;</code></span></h4>
<div class='docblock'><p>Asks alsa to convert playback volume to millibels.</p>
</div><h4 id='method.get_capture_volume' class="method"><span id='get_capture_volume.v' class='invisible'><code>fn <a href='#method.get_capture_volume' class='fnname'>get_capture_volume</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>&gt;</code></span></h4>
<h4 id='method.get_capture_vol_db' class="method"><span id='get_capture_vol_db.v' class='invisible'><code>fn <a href='#method.get_capture_vol_db' class='fnname'>get_capture_vol_db</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>&gt;</code></span></h4>
<div class='docblock'><p>returns volume in millibels.</p>
</div><h4 id='method.ask_capture_vol_db' class="method"><span id='ask_capture_vol_db.v' class='invisible'><code>fn <a href='#method.ask_capture_vol_db' class='fnname'>ask_capture_vol_db</a>(&amp;self, volume: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>&gt;</code></span></h4>
<div class='docblock'><p>Asks alsa to convert capture volume to millibels</p>
</div><h4 id='method.set_playback_volume' class="method"><span id='set_playback_volume.v' class='invisible'><code>fn <a href='#method.set_playback_volume' class='fnname'>set_playback_volume</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_playback_volume_all' class="method"><span id='set_playback_volume_all.v' class='invisible'><code>fn <a href='#method.set_playback_volume_all' class='fnname'>set_playback_volume_all</a>(&amp;self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_playback_db' class="method"><span id='set_playback_db.v' class='invisible'><code>fn <a href='#method.set_playback_db' class='fnname'>set_playback_db</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;value: <a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dir: <a class="enum" href="../../alsa/enum.Round.html" title="enum alsa::Round">Round</a><br>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_capture_db' class="method"><span id='set_capture_db.v' class='invisible'><code>fn <a href='#method.set_capture_db' class='fnname'>set_capture_db</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;value: <a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dir: <a class="enum" href="../../alsa/enum.Round.html" title="enum alsa::Round">Round</a><br>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_playback_db_all' class="method"><span id='set_playback_db_all.v' class='invisible'><code>fn <a href='#method.set_playback_db_all' class='fnname'>set_playback_db_all</a>(&amp;self, value: <a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>, dir: <a class="enum" href="../../alsa/enum.Round.html" title="enum alsa::Round">Round</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_capture_db_all' class="method"><span id='set_capture_db_all.v' class='invisible'><code>fn <a href='#method.set_capture_db_all' class='fnname'>set_capture_db_all</a>(&amp;self, value: <a class="struct" href="../../alsa/mixer/struct.MilliBel.html" title="struct alsa::mixer::MilliBel">MilliBel</a>, dir: <a class="enum" href="../../alsa/enum.Round.html" title="enum alsa::Round">Round</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_capture_volume' class="method"><span id='set_capture_volume.v' class='invisible'><code>fn <a href='#method.set_capture_volume' class='fnname'>set_capture_volume</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_playback_switch' class="method"><span id='set_playback_switch.v' class='invisible'><code>fn <a href='#method.set_playback_switch' class='fnname'>set_playback_switch</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_playback_switch_all' class="method"><span id='set_playback_switch_all.v' class='invisible'><code>fn <a href='#method.set_playback_switch_all' class='fnname'>set_playback_switch_all</a>(&amp;self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_capture_switch' class="method"><span id='set_capture_switch.v' class='invisible'><code>fn <a href='#method.set_capture_switch' class='fnname'>set_capture_switch</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.set_capture_switch_all' class="method"><span id='set_capture_switch_all.v' class='invisible'><code>fn <a href='#method.set_capture_switch_all' class='fnname'>set_capture_switch_all</a>(&amp;self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
<h4 id='method.get_playback_switch' class="method"><span id='get_playback_switch.v' class='invisible'><code>fn <a href='#method.get_playback_switch' class='fnname'>get_playback_switch</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>&gt;</code></span></h4>
<h4 id='method.get_capture_switch' class="method"><span id='get_capture_switch.v' class='invisible'><code>fn <a href='#method.get_capture_switch' class='fnname'>get_capture_switch</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>&gt;</code></span></h4>
<h4 id='method.is_enumerated' class="method"><span id='is_enumerated.v' class='invisible'><code>fn <a href='#method.is_enumerated' class='fnname'>is_enumerated</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.is_enum_playback' class="method"><span id='is_enum_playback.v' class='invisible'><code>fn <a href='#method.is_enum_playback' class='fnname'>is_enum_playback</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.is_enum_capture' class="method"><span id='is_enum_capture.v' class='invisible'><code>fn <a href='#method.is_enum_capture' class='fnname'>is_enum_capture</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<h4 id='method.get_enum_items' class="method"><span id='get_enum_items.v' class='invisible'><code>fn <a href='#method.get_enum_items' class='fnname'>get_enum_items</a>(&amp;self) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt;</code></span></h4>
<h4 id='method.get_enum_item_name' class="method"><span id='get_enum_item_name.v' class='invisible'><code>fn <a href='#method.get_enum_item_name' class='fnname'>get_enum_item_name</a>(&amp;self, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code></span></h4>
<h4 id='method.iter_enum' class="method"><span id='iter_enum.v' class='invisible'><code>fn <a href='#method.iter_enum' class='fnname'>iter_enum</a>(&amp;self) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="struct" href="../../alsa/mixer/struct.IterEnum.html" title="struct alsa::mixer::IterEnum">IterEnum</a>&gt;</code></span></h4>
<div class='docblock'><p>Enumerates over valid Enum values</p>
</div><h4 id='method.get_enum_item' class="method"><span id='get_enum_item.v' class='invisible'><code>fn <a href='#method.get_enum_item' class='fnname'>get_enum_item</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt;</code></span></h4>
<h4 id='method.set_enum_item' class="method"><span id='set_enum_item.v' class='invisible'><code>fn <a href='#method.set_enum_item' class='fnname'>set_enum_item</a>(&amp;self, channel: <a class="enum" href="../../alsa/mixer/enum.SelemChannelId.html" title="enum alsa::mixer::SelemChannelId">SelemChannelId</a>, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="type" href="../../alsa/type.Result.html" title="type alsa::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">()</a>&gt;</code></span></h4>
</div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="../../alsa/mixer/struct.Selem.html" title="struct alsa::mixer::Selem">Selem</a>&lt;'a&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/alsa/mixer.rs.html#429-436' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Target' class="type"><span id='Target.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target' class="type">Target</a> = <a class="struct" href="../../alsa/mixer/struct.Elem.html" title="struct alsa::mixer::Elem">Elem</a>&lt;'a&gt;</code></span></h4>
<div class='docblock'><p>The resulting type after dereferencing</p>
</div><h4 id='method.deref' class="method"><span id='deref.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref' class='fnname'>deref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../alsa/mixer/struct.Elem.html" title="struct alsa::mixer::Elem">Elem</a>&lt;'a&gt;</code></span></h4>
<div class='docblock'><p>returns the elem of this selem</p>
</div></div></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt>&larrb;</dt>
<dd>Move up in search results</dd>
<dt>&rarrb;</dt>
<dd>Move down in search results</dd>
<dt>&#9166;</dt>
<dd>Go to active search result</dd>
<dt>+</dt>
<dd>Collapse/expand all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../../";
window.currentCrate = "alsa";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>