mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-17 16:29:50 +00:00
deploy: be3f00b51e
This commit is contained in:
parent
ceeb2b2158
commit
83f32f113b
83 changed files with 3040 additions and 53 deletions
0
.lock
Normal file
0
.lock
Normal file
1
cli/all.html
Normal file
1
cli/all.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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="List of all items in this crate"><title>List of all items in this crate</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="cli" 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="../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 sys"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../cli/index.html">cli</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</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"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="struct.Cli.html">Cli</a></li></ul><h3 id="enums">Enums</h3><ul class="all-items"><li><a href="enum.CommandOptions.html">CommandOptions</a></li></ul><h3 id="functions">Functions</h3><ul class="all-items"><li><a href="fn.main.html">main</a></li></ul></section></div></main></body></html>
|
||||||
81
cli/enum.CommandOptions.html
Normal file
81
cli/enum.CommandOptions.html
Normal file
File diff suppressed because one or more lines are too long
1
cli/fn.main.html
Normal file
1
cli/fn.main.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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 `main` fn in crate `cli`."><title>main in cli - 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="cli" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../cli/index.html">cli</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><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"><span class="rustdoc-breadcrumbs"><a href="index.html">cli</a></span><h1>Function <span class="fn">main</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/cli/cli.rs.html#98-342">Source</a> </span></div><pre class="rust item-decl"><code>pub(crate) fn main() -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>></code></pre></section></div></main></body></html>
|
||||||
1
cli/index.html
Normal file
1
cli/index.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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 `cli` crate."><title>cli - 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="cli" 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="../crates.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 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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../cli/index.html">cli</a><span class="version">0.1.0</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="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</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>cli</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/cli/cli.rs.html#1-342">Source</a> </span></div><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.Cli.html" title="struct cli::Cli">Cli</a><span title="Restricted Visibility"> 🔒</span> </div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.CommandOptions.html" title="enum cli::CommandOptions">Command<wbr>Options</a><span title="Restricted Visibility"> 🔒</span> </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.main.html" title="fn cli::main">main</a><span title="Restricted Visibility"> 🔒</span> </div></li></ul></section></div></main></body></html>
|
||||||
1
cli/sidebar-items.js
Normal file
1
cli/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
window.SIDEBAR_ITEMS = {"enum":["CommandOptions"],"fn":["main"],"struct":["Cli"]};
|
||||||
37
cli/struct.Cli.html
Normal file
37
cli/struct.Cli.html
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
<!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 `Cli` struct in crate `cli`."><title>Cli in cli - 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="cli" 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 struct"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../cli/index.html">cli</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Cli</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.command" title="command">command</a></li><li><a href="#structfield.debug" title="debug">debug</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Args-for-Cli" title="Args">Args</a></li><li><a href="#impl-CommandFactory-for-Cli" title="CommandFactory">CommandFactory</a></li><li><a href="#impl-FromArgMatches-for-Cli" title="FromArgMatches">FromArgMatches</a></li><li><a href="#impl-Parser-for-Cli" title="Parser">Parser</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Cli" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Cli" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Cli" title="Send">Send</a></li><li><a href="#impl-Sync-for-Cli" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Cli" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Cli" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate cli</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">cli</a></span><h1>Struct <span class="struct">Cli</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/cli/cli.rs.html#15-21">Source</a> </span></div><pre class="rust item-decl"><code>pub(crate) struct Cli {
|
||||||
|
pub(crate) debug: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.bool.html">bool</a>,
|
||||||
|
pub(crate) command: <a class="enum" href="enum.CommandOptions.html" title="enum cli::CommandOptions">CommandOptions</a>,
|
||||||
|
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.debug" class="structfield section-header"><a href="#structfield.debug" class="anchor field">§</a><code>debug: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.bool.html">bool</a></code></span><span id="structfield.command" class="structfield section-header"><a href="#structfield.command" class="anchor field">§</a><code>command: <a class="enum" href="enum.CommandOptions.html" title="enum cli::CommandOptions">CommandOptions</a></code></span><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Args-for-Cli" class="impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#impl-Args-for-Cli" class="anchor">§</a><h3 class="code-header">impl Args for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.group_id" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.group_id" class="anchor">§</a><h4 class="code-header">fn <a class="fn">group_id</a>() -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Id></h4></section></summary><div class='docblock'>Report the [<code>ArgGroup::id</code>][crate::ArgGroup::id] for this set of arguments</div></details><details class="toggle method-toggle" open><summary><section id="method.augment_args" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.augment_args" class="anchor">§</a><h4 class="code-header">fn <a class="fn">augment_args</a><'b>(__clap_app: Command) -> Command</h4></section></summary><div class='docblock'>Append to [<code>Command</code>] so it can instantiate <code>Self</code> via
|
||||||
|
[<code>FromArgMatches::from_arg_matches_mut</code>] <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.augment_args_for_update" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.augment_args_for_update" class="anchor">§</a><h4 class="code-header">fn <a class="fn">augment_args_for_update</a><'b>(__clap_app: Command) -> Command</h4></section></summary><div class='docblock'>Append to [<code>Command</code>] so it can instantiate <code>self</code> via
|
||||||
|
[<code>FromArgMatches::update_from_arg_matches_mut</code>] <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-CommandFactory-for-Cli" class="impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#impl-CommandFactory-for-Cli" class="anchor">§</a><h3 class="code-header">impl CommandFactory for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.command" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.command" class="anchor">§</a><h4 class="code-header">fn <a class="fn">command</a><'b>() -> Command</h4></section></summary><div class='docblock'>Build a [<code>Command</code>] that can instantiate <code>Self</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.command_for_update" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.command_for_update" class="anchor">§</a><h4 class="code-header">fn <a class="fn">command_for_update</a><'b>() -> Command</h4></section></summary><div class='docblock'>Build a [<code>Command</code>] that can update <code>self</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromArgMatches-for-Cli" class="impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#impl-FromArgMatches-for-Cli" class="anchor">§</a><h3 class="code-header">impl FromArgMatches for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_arg_matches" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.from_arg_matches" class="anchor">§</a><h4 class="code-header">fn <a class="fn">from_arg_matches</a>(__clap_arg_matches: &ArgMatches) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><div class='docblock'>Instantiate <code>Self</code> from [<code>ArgMatches</code>], parsing the arguments as needed. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.from_arg_matches_mut" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.from_arg_matches_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">from_arg_matches_mut</a>(
|
||||||
|
__clap_arg_matches: &mut ArgMatches,
|
||||||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><div class='docblock'>Instantiate <code>Self</code> from [<code>ArgMatches</code>], parsing the arguments as needed. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.update_from_arg_matches" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.update_from_arg_matches" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_from_arg_matches</a>(
|
||||||
|
&mut self,
|
||||||
|
__clap_arg_matches: &ArgMatches,
|
||||||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, Error></h4></section></summary><div class='docblock'>Assign values from <code>ArgMatches</code> to <code>self</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.update_from_arg_matches_mut" class="method trait-impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#method.update_from_arg_matches_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_from_arg_matches_mut</a>(
|
||||||
|
&mut self,
|
||||||
|
__clap_arg_matches: &mut ArgMatches,
|
||||||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, Error></h4></section></summary><div class='docblock'>Assign values from <code>ArgMatches</code> to <code>self</code>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Parser-for-Cli" class="impl"><a class="src rightside" href="../src/cli/cli.rs.html#13">Source</a><a href="#impl-Parser-for-Cli" class="anchor">§</a><h3 class="code-header">impl Parser for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.parse" class="method trait-impl"><a href="#method.parse" class="anchor">§</a><h4 class="code-header">fn <a class="fn">parse</a>() -> Self</h4></section></summary><div class='docblock'>Parse from <code>std::env::args_os()</code>, [exit][Error::exit] on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_parse" class="method trait-impl"><a href="#method.try_parse" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_parse</a>() -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><div class='docblock'>Parse from <code>std::env::args_os()</code>, return Err on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.parse_from" class="method trait-impl"><a href="#method.parse_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">parse_from</a><I, T>(itr: I) -> Self<div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Parse from iterator, [exit][Error::exit] on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_parse_from" class="method trait-impl"><a href="#method.try_parse_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_parse_from</a><I, T>(itr: I) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error><div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Parse from iterator, return Err on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.update_from" class="method trait-impl"><a href="#method.update_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_from</a><I, T>(&mut self, itr: I)<div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Update from iterator, [exit][Error::exit] on error. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_update_from" class="method trait-impl"><a href="#method.try_update_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_update_from</a><I, T>(&mut self, itr: I) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, Error><div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Update from iterator, return Err on error.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Cli" class="impl"><a href="#impl-Freeze-for-Cli" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section><section id="impl-RefUnwindSafe-for-Cli" class="impl"><a href="#impl-RefUnwindSafe-for-Cli" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section><section id="impl-Send-for-Cli" class="impl"><a href="#impl-Send-for-Cli" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section><section id="impl-Sync-for-Cli" class="impl"><a href="#impl-Sync-for-Cli" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section><section id="impl-Unpin-for-Cli" class="impl"><a href="#impl-Unpin-for-Cli" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section><section id="impl-UnwindSafe-for-Cli" class="impl"><a href="#impl-UnwindSafe-for-Cli" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Cli.html" title="struct cli::Cli">Cli</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||||||
|
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||||||
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||||||
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||||||
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
|
||||||
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
|
||||||
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||||||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||||||
|
<p>That is, this conversion is whatever the implementation of
|
||||||
|
<code><a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||||||
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||||||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||||||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
||||||
|
S: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||||||
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||||||
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html>
|
||||||
2
crates.js
Normal file
2
crates.js
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
window.ALL_CRATES = ["cli","mrc","server"];
|
||||||
|
//{"start":21,"fragment_lengths":[5,6,9]}
|
||||||
1
help.html
Normal file
1
help.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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="Documentation for Rustdoc"><title>Help</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="server" 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="./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 sys"><!--[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="./index.html"><img class="rust-logo" src="./static.files/rust-logo-9a9549ea.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-9a9549ea.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.84.1</span></h2></div><div class="version">(e71f9a9a9 2025-01-27)</div><h2 class="location">Help</h2><div class="sidebar-elems"></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>Rustdoc help</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section><p>You need to enable JavaScript to use keyboard commands or search.</p><p>For more information, browse the <a href="https://doc.rust-lang.org/rustdoc/">rustdoc handbook</a>.</p></section></noscript></section></div></main></body></html>
|
||||||
34
index.html
34
index.html
|
|
@ -1,33 +1 @@
|
||||||
<!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="MRC A library for interacting with the MPV media player using its JSON IPC (Inter-Process Communication) protocol."><title>mrc - 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="mrc" 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="../crates.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 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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</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="#">Sections</a></h3><ul class="block top-toc"><li><a href="#features" title="Features">Features</a></li><li><a href="#example-usage" title="Example Usage">Example Usage</a></li><li><a href="#constants" title="Constants">Constants</a><ul><li><a href="#socket_path" title="`SOCKET_PATH`"><code>SOCKET_PATH</code></a></li></ul></li><li><a href="#functions" title="Functions">Functions</a></li></ul><h3><a href="#enums">Crate Items</a></h3><ul class="block"><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants-1" title="Constants">Constants</a></li><li><a href="#functions-1" 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>mrc</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/mrc/lib.rs.html#1-357">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>MRC
|
<meta http-equiv="refresh" content="0;url=mrc/index.html">
|
||||||
A library for interacting with the MPV media player using its JSON IPC (Inter-Process Communication) protocol.</p>
|
|
||||||
<p>This crate provides a set of utilities to communicate with MPV’s IPC socket, enabling you to send commands
|
|
||||||
and retrieve responses in a structured format.</p>
|
|
||||||
<h3 id="features"><a class="doc-anchor" href="#features">§</a>Features</h3>
|
|
||||||
<ul>
|
|
||||||
<li>Send commands to MPV’s IPC socket</li>
|
|
||||||
<li>Retrieve responses in JSON format</li>
|
|
||||||
<li>Supports common MPV commands like <code>set_property</code>, <code>seek</code>, and <code>playlist-next</code></li>
|
|
||||||
<li>Flexible socket path configuration</li>
|
|
||||||
</ul>
|
|
||||||
<h3 id="example-usage"><a class="doc-anchor" href="#example-usage">§</a>Example Usage</h3>
|
|
||||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>serde_json::json;
|
|
||||||
<span class="kw">use </span>tokio;
|
|
||||||
<span class="kw">use </span>mrc::{send_ipc_command, playlist_next, set_property};
|
|
||||||
|
|
||||||
<span class="attr">#[tokio::main]
|
|
||||||
</span><span class="kw">async fn </span>main() {
|
|
||||||
<span class="kw">let </span>result = playlist_next(<span class="prelude-val">None</span>).<span class="kw">await</span>;
|
|
||||||
<span class="kw">match </span>result {
|
|
||||||
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"Playlist moved to next: {:?}"</span>, response),
|
|
||||||
<span class="prelude-val">Err</span>(err) => <span class="macro">eprintln!</span>(<span class="string">"Error: {:?}"</span>, err),
|
|
||||||
}
|
|
||||||
|
|
||||||
<span class="kw">let </span>property_result = set_property(<span class="string">"volume"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="number">50</span>), <span class="prelude-val">None</span>).<span class="kw">await</span>;
|
|
||||||
<span class="kw">match </span>property_result {
|
|
||||||
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"Volume set: {:?}"</span>, response),
|
|
||||||
<span class="prelude-val">Err</span>(err) => <span class="macro">eprintln!</span>(<span class="string">"Error: {:?}"</span>, err),
|
|
||||||
}
|
|
||||||
}</code></pre></div>
|
|
||||||
<h3 id="constants"><a class="doc-anchor" href="#constants">§</a>Constants</h3><h4 id="socket_path"><a class="doc-anchor" href="#socket_path">§</a><code>SOCKET_PATH</code></h4>
|
|
||||||
<p>Default path for the MPV IPC socket: <code>/tmp/mpvsocket</code></p>
|
|
||||||
<h3 id="functions"><a class="doc-anchor" href="#functions">§</a>Functions</h3></div></details><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.MpvCommand.html" title="enum mrc::MpvCommand">MpvCommand</a></div><div class="desc docblock-short">Represents common MPV commands.</div></li></ul><h2 id="constants-1" class="section-header">Constants<a href="#constants-1" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="constant" href="constant.SOCKET_PATH.html" title="constant mrc::SOCKET_PATH">SOCKET_<wbr>PATH</a></div></li></ul><h2 id="functions-1" class="section-header">Functions<a href="#functions-1" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.get_property.html" title="fn mrc::get_property">get_<wbr>property</a></div><div class="desc docblock-short">Sends the <code>get_property</code> command to retrieve a property value from MPV.</div></li><li><div class="item-name"><a class="fn" href="fn.loadfile.html" title="fn mrc::loadfile">loadfile</a></div><div class="desc docblock-short">Sends the <code>loadfile</code> command to load a file into MPV.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_clear.html" title="fn mrc::playlist_clear">playlist_<wbr>clear</a></div><div class="desc docblock-short">Sends the <code>playlist-clear</code> command to clear the playlist.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_move.html" title="fn mrc::playlist_move">playlist_<wbr>move</a></div><div class="desc docblock-short">Sends the <code>playlist-move</code> command to move a playlist item from one index to another.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_next.html" title="fn mrc::playlist_next">playlist_<wbr>next</a></div><div class="desc docblock-short">Sends the <code>playlist-next</code> command to move to the next playlist item.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_prev.html" title="fn mrc::playlist_prev">playlist_<wbr>prev</a></div><div class="desc docblock-short">Sends the <code>playlist-prev</code> command to move to the previous playlist item.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_remove.html" title="fn mrc::playlist_remove">playlist_<wbr>remove</a></div><div class="desc docblock-short">Sends the <code>playlist-remove</code> command to remove an item from the playlist.</div></li><li><div class="item-name"><a class="fn" href="fn.quit.html" title="fn mrc::quit">quit</a></div><div class="desc docblock-short">Sends the <code>quit</code> command to terminate MPV.</div></li><li><div class="item-name"><a class="fn" href="fn.seek.html" title="fn mrc::seek">seek</a></div><div class="desc docblock-short">Sends the <code>seek</code> command to seek the media playback by a given number of seconds.</div></li><li><div class="item-name"><a class="fn" href="fn.send_ipc_command.html" title="fn mrc::send_ipc_command">send_<wbr>ipc_<wbr>command</a></div><div class="desc docblock-short">Sends a generic IPC command to the specified socket and returns the parsed response data.</div></li><li><div class="item-name"><a class="fn" href="fn.set_property.html" title="fn mrc::set_property">set_<wbr>property</a></div><div class="desc docblock-short">Sends the <code>set_property</code> command to MPV to change a property value.</div></li></ul></section></div></main></body></html>
|
|
||||||
|
|
|
||||||
|
|
@ -31,15 +31,15 @@ string equivalents using the <code>as_str</code> method.</p>
|
||||||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||||||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||||||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||||||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#325">Source</a><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#86">Source</a><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.Instrument.html#method.instrument" class="fn">instrument</a>(self, span: <a class="struct" href="../tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'>Instruments this type with the provided <a href="../tracing/span/struct.Span.html" title="struct tracing::span::Span"><code>Span</code></a>, returning an
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
|
||||||
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#128">Source</a><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span" class="fn">in_current_span</a>(self) -> <a class="struct" href="../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="../tracing/span/struct.Span.html#method.current" title="associated function tracing::span::Span::current">current</a> <a href="../tracing/span/struct.Span.html" title="struct tracing::span::Span"><code>Span</code></a>, returning an
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
|
||||||
<code>Instrumented</code> wrapper. <a href="../tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||||||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||||||
<p>That is, this conversion is whatever the implementation of
|
<p>That is, this conversion is whatever the implementation of
|
||||||
<code><a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
<code><a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||||||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||||||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||||||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#393">Source</a><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#176-178">Source</a><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fn">with_subscriber</a><S>(self, subscriber: S) -> <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self><div class="where">where
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
||||||
S: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="../tracing_core/subscriber/trait.Subscriber.html" title="trait tracing_core::subscriber::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
S: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||||||
<a href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a class="src rightside" href="../src/tracing/instrument.rs.html#228">Source</a><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="struct" href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'>Attaches the current <a href="../tracing/dispatcher/index.html#setting-the-default-subscriber" title="mod tracing::dispatcher">default</a> <a href="../tracing_core/subscriber/trait.Subscriber.html" title="trait tracing_core::subscriber::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||||||
<a href="../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details></div></section></div></main></body></html>
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html>
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!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="Sends the `get_property` command to retrieve a property value from MPV."><title>get_property in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">get_<wbr>property</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">get_property</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/mrc/lib.rs.html#320-327">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn get_property(
|
<!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="Sends the `get_property` command to retrieve a property value from MPV."><title>get_property in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">get_<wbr>property</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">get_property</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/mrc/lib.rs.html#320-327">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn get_property(
|
||||||
property: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
property: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
||||||
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
||||||
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>get_property</code> command to retrieve a property value from MPV.</p>
|
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>get_property</code> command to retrieve a property value from MPV.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>property</code>: The name of the property to retrieve.</li>
|
<li><code>property</code>: The name of the property to retrieve.</li>
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
filename: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
filename: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
||||||
append: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.bool.html">bool</a>,
|
append: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.bool.html">bool</a>,
|
||||||
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
||||||
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>loadfile</code> command to load a file into MPV.</p>
|
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>loadfile</code> command to load a file into MPV.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>filename</code>: The name of the file to load.</li>
|
<li><code>filename</code>: The name of the file to load.</li>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!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="Sends the `playlist-clear` command to clear the playlist."><title>playlist_clear in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>clear</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_clear</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/mrc/lib.rs.html#305-307">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_clear(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-clear</code> command to clear the playlist.</p>
|
<!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="Sends the `playlist-clear` command to clear the playlist."><title>playlist_clear in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>clear</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_clear</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/mrc/lib.rs.html#305-307">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_clear(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-clear</code> command to clear the playlist.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>socket_path</code>: An optional custom socket path.</li>
|
<li><code>socket_path</code>: An optional custom socket path.</li>
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
from_index: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>,
|
from_index: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>,
|
||||||
to_index: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>,
|
to_index: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>,
|
||||||
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
||||||
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-move</code> command to move a playlist item from one index to another.</p>
|
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-move</code> command to move a playlist item from one index to another.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>from_index</code>: The index of the item to move.</li>
|
<li><code>from_index</code>: The index of the item to move.</li>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!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="Sends the `playlist-next` command to move to the next playlist item."><title>playlist_next in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>next</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_next</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/mrc/lib.rs.html#201-203">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_next(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-next</code> command to move to the next playlist item.</p>
|
<!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="Sends the `playlist-next` command to move to the next playlist item."><title>playlist_next in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>next</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_next</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/mrc/lib.rs.html#201-203">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_next(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-next</code> command to move to the next playlist item.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>socket_path</code>: An optional custom socket path.</li>
|
<li><code>socket_path</code>: An optional custom socket path.</li>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!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="Sends the `playlist-prev` command to move to the previous playlist item."><title>playlist_prev in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>prev</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_prev</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/mrc/lib.rs.html#215-217">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_prev(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-prev</code> command to move to the previous playlist item.</p>
|
<!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="Sends the `playlist-prev` command to move to the previous playlist item."><title>playlist_prev in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>prev</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_prev</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/mrc/lib.rs.html#215-217">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_prev(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-prev</code> command to move to the previous playlist item.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>socket_path</code>: An optional custom socket path.</li>
|
<li><code>socket_path</code>: An optional custom socket path.</li>
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!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="Sends the `playlist-remove` command to remove an item from the playlist."><title>playlist_remove in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>remove</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_remove</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/mrc/lib.rs.html#284-293">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_remove(
|
<!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="Sends the `playlist-remove` command to remove an item from the playlist."><title>playlist_remove in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">playlist_<wbr>remove</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">playlist_remove</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/mrc/lib.rs.html#284-293">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn playlist_remove(
|
||||||
index: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>>,
|
index: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>>,
|
||||||
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
||||||
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-remove</code> command to remove an item from the playlist.</p>
|
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>playlist-remove</code> command to remove an item from the playlist.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>index</code>: The index of the item to remove, or <code>None</code> to remove the current item.</li>
|
<li><code>index</code>: The index of the item to remove, or <code>None</code> to remove the current item.</li>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<!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="Sends the `quit` command to terminate MPV."><title>quit in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">quit</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">quit</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/mrc/lib.rs.html#244-246">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn quit(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>quit</code> command to terminate MPV.</p>
|
<!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="Sends the `quit` command to terminate MPV."><title>quit in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">quit</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">quit</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/mrc/lib.rs.html#244-246">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn quit(socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>quit</code> command to terminate MPV.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>socket_path</code>: An optional custom socket path.</li>
|
<li><code>socket_path</code>: An optional custom socket path.</li>
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!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="Sends the `seek` command to seek the media playback by a given number of seconds."><title>seek in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">seek</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">seek</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/mrc/lib.rs.html#230-232">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn seek(
|
<!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="Sends the `seek` command to seek the media playback by a given number of seconds."><title>seek in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">seek</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">seek</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/mrc/lib.rs.html#230-232">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn seek(
|
||||||
seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.f64.html">f64</a>,
|
seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.f64.html">f64</a>,
|
||||||
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
||||||
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>seek</code> command to seek the media playback by a given number of seconds.</p>
|
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>seek</code> command to seek the media playback by a given number of seconds.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>seconds</code>: The number of seconds to seek.</li>
|
<li><code>seconds</code>: The number of seconds to seek.</li>
|
||||||
|
|
@ -1,8 +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="Sends a generic IPC command to the specified socket and returns the parsed response data."><title>send_ipc_command in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">send_<wbr>ipc_<wbr>command</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">send_ipc_command</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/mrc/lib.rs.html#63-111">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn send_ipc_command(
|
<!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="Sends a generic IPC command to the specified socket and returns the parsed response data."><title>send_ipc_command in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">send_<wbr>ipc_<wbr>command</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">send_ipc_command</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/mrc/lib.rs.html#63-111">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn send_ipc_command(
|
||||||
command: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
command: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
||||||
args: &[<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>],
|
args: &[<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>],
|
||||||
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
||||||
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends a generic IPC command to the specified socket and returns the parsed response data.</p>
|
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends a generic IPC command to the specified socket and returns the parsed response data.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>command</code>: The name of the command to send to MPV.</li>
|
<li><code>command</code>: The name of the command to send to MPV.</li>
|
||||||
|
|
@ -1,8 +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="Sends the `set_property` command to MPV to change a property value."><title>set_property in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">set_<wbr>property</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">set_property</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/mrc/lib.rs.html#178-189">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn set_property(
|
<!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="Sends the `set_property` command to MPV to change a property value."><title>set_property in mrc - 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="mrc" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">set_<wbr>property</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#arguments" title="Arguments">Arguments</a></li><li><a href="#returns" title="Returns">Returns</a></li><li><a href="#errors" title="Errors">Errors</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate mrc</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">mrc</a></span><h1>Function <span class="fn">set_property</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/mrc/lib.rs.html#178-189">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn set_property(
|
||||||
property: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
property: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>,
|
||||||
value: &<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>,
|
value: &<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>,
|
||||||
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
socket_path: <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>>,
|
||||||
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>set_property</code> command to MPV to change a property value.</p>
|
) -> <a class="type" href="https://doc.rust-lang.org/1.84.1/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://docs.rs/serde_json/1.0.133/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Sends the <code>set_property</code> command to MPV to change a property value.</p>
|
||||||
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
<h2 id="arguments"><a class="doc-anchor" href="#arguments">§</a>Arguments</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>property</code>: The name of the property to set.</li>
|
<li><code>property</code>: The name of the property to set.</li>
|
||||||
33
mrc/index.html
Normal file
33
mrc/index.html
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
<!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="MRC A library for interacting with the MPV media player using its JSON IPC (Inter-Process Communication) protocol."><title>mrc - 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="mrc" 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="../crates.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 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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../mrc/index.html">mrc</a><span class="version">0.1.0</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="#">Sections</a></h3><ul class="block top-toc"><li><a href="#features" title="Features">Features</a></li><li><a href="#example-usage" title="Example Usage">Example Usage</a></li><li><a href="#constants" title="Constants">Constants</a><ul><li><a href="#socket_path" title="`SOCKET_PATH`"><code>SOCKET_PATH</code></a></li></ul></li><li><a href="#functions" title="Functions">Functions</a></li></ul><h3><a href="#enums">Crate Items</a></h3><ul class="block"><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants-1" title="Constants">Constants</a></li><li><a href="#functions-1" 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>mrc</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/mrc/lib.rs.html#1-357">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>MRC
|
||||||
|
A library for interacting with the MPV media player using its JSON IPC (Inter-Process Communication) protocol.</p>
|
||||||
|
<p>This crate provides a set of utilities to communicate with MPV’s IPC socket, enabling you to send commands
|
||||||
|
and retrieve responses in a structured format.</p>
|
||||||
|
<h3 id="features"><a class="doc-anchor" href="#features">§</a>Features</h3>
|
||||||
|
<ul>
|
||||||
|
<li>Send commands to MPV’s IPC socket</li>
|
||||||
|
<li>Retrieve responses in JSON format</li>
|
||||||
|
<li>Supports common MPV commands like <code>set_property</code>, <code>seek</code>, and <code>playlist-next</code></li>
|
||||||
|
<li>Flexible socket path configuration</li>
|
||||||
|
</ul>
|
||||||
|
<h3 id="example-usage"><a class="doc-anchor" href="#example-usage">§</a>Example Usage</h3>
|
||||||
|
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>serde_json::json;
|
||||||
|
<span class="kw">use </span>tokio;
|
||||||
|
<span class="kw">use </span>mrc::{send_ipc_command, playlist_next, set_property};
|
||||||
|
|
||||||
|
<span class="attr">#[tokio::main]
|
||||||
|
</span><span class="kw">async fn </span>main() {
|
||||||
|
<span class="kw">let </span>result = playlist_next(<span class="prelude-val">None</span>).<span class="kw">await</span>;
|
||||||
|
<span class="kw">match </span>result {
|
||||||
|
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"Playlist moved to next: {:?}"</span>, response),
|
||||||
|
<span class="prelude-val">Err</span>(err) => <span class="macro">eprintln!</span>(<span class="string">"Error: {:?}"</span>, err),
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">let </span>property_result = set_property(<span class="string">"volume"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="number">50</span>), <span class="prelude-val">None</span>).<span class="kw">await</span>;
|
||||||
|
<span class="kw">match </span>property_result {
|
||||||
|
<span class="prelude-val">Ok</span>(response) => <span class="macro">println!</span>(<span class="string">"Volume set: {:?}"</span>, response),
|
||||||
|
<span class="prelude-val">Err</span>(err) => <span class="macro">eprintln!</span>(<span class="string">"Error: {:?}"</span>, err),
|
||||||
|
}
|
||||||
|
}</code></pre></div>
|
||||||
|
<h3 id="constants"><a class="doc-anchor" href="#constants">§</a>Constants</h3><h4 id="socket_path"><a class="doc-anchor" href="#socket_path">§</a><code>SOCKET_PATH</code></h4>
|
||||||
|
<p>Default path for the MPV IPC socket: <code>/tmp/mpvsocket</code></p>
|
||||||
|
<h3 id="functions"><a class="doc-anchor" href="#functions">§</a>Functions</h3></div></details><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.MpvCommand.html" title="enum mrc::MpvCommand">MpvCommand</a></div><div class="desc docblock-short">Represents common MPV commands.</div></li></ul><h2 id="constants-1" class="section-header">Constants<a href="#constants-1" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="constant" href="constant.SOCKET_PATH.html" title="constant mrc::SOCKET_PATH">SOCKET_<wbr>PATH</a></div></li></ul><h2 id="functions-1" class="section-header">Functions<a href="#functions-1" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.get_property.html" title="fn mrc::get_property">get_<wbr>property</a></div><div class="desc docblock-short">Sends the <code>get_property</code> command to retrieve a property value from MPV.</div></li><li><div class="item-name"><a class="fn" href="fn.loadfile.html" title="fn mrc::loadfile">loadfile</a></div><div class="desc docblock-short">Sends the <code>loadfile</code> command to load a file into MPV.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_clear.html" title="fn mrc::playlist_clear">playlist_<wbr>clear</a></div><div class="desc docblock-short">Sends the <code>playlist-clear</code> command to clear the playlist.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_move.html" title="fn mrc::playlist_move">playlist_<wbr>move</a></div><div class="desc docblock-short">Sends the <code>playlist-move</code> command to move a playlist item from one index to another.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_next.html" title="fn mrc::playlist_next">playlist_<wbr>next</a></div><div class="desc docblock-short">Sends the <code>playlist-next</code> command to move to the next playlist item.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_prev.html" title="fn mrc::playlist_prev">playlist_<wbr>prev</a></div><div class="desc docblock-short">Sends the <code>playlist-prev</code> command to move to the previous playlist item.</div></li><li><div class="item-name"><a class="fn" href="fn.playlist_remove.html" title="fn mrc::playlist_remove">playlist_<wbr>remove</a></div><div class="desc docblock-short">Sends the <code>playlist-remove</code> command to remove an item from the playlist.</div></li><li><div class="item-name"><a class="fn" href="fn.quit.html" title="fn mrc::quit">quit</a></div><div class="desc docblock-short">Sends the <code>quit</code> command to terminate MPV.</div></li><li><div class="item-name"><a class="fn" href="fn.seek.html" title="fn mrc::seek">seek</a></div><div class="desc docblock-short">Sends the <code>seek</code> command to seek the media playback by a given number of seconds.</div></li><li><div class="item-name"><a class="fn" href="fn.send_ipc_command.html" title="fn mrc::send_ipc_command">send_<wbr>ipc_<wbr>command</a></div><div class="desc docblock-short">Sends a generic IPC command to the specified socket and returns the parsed response data.</div></li><li><div class="item-name"><a class="fn" href="fn.set_property.html" title="fn mrc::set_property">set_<wbr>property</a></div><div class="desc docblock-short">Sends the <code>set_property</code> command to MPV to change a property value.</div></li></ul></section></div></main></body></html>
|
||||||
4
search-index.js
Normal file
4
search-index.js
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
var searchIndex = new Map(JSON.parse('[["cli",{"t":"PPFGPPPPPPPPPPPPNNNNNNNNNONONNNNNNNNNNHNNNNNNNNNNOOOOOOOO","n":["Add","Clear","Cli","CommandOptions","Interactive","List","Move","Next","Pause","Play","Prev","Prop","Remove","Replace","Seek","Stop","augment_args","augment_args_for_update","augment_subcommands","augment_subcommands_for_update","borrow","","borrow_mut","","command","","command_for_update","debug","from","","from_arg_matches","","from_arg_matches_mut","","group_id","has_subcommand","into","","main","try_from","","try_into","","type_id","","update_from_arg_matches","","update_from_arg_matches_mut","","filenames","","index","","index1","index2","properties","seconds"],"q":[[0,"cli"],[49,"cli::CommandOptions"],[57,"clap_builder::builder::command"],[58,"clap_builder::parser::matches::arg_matches"],[59,"clap_builder"],[60,"core::result"],[61,"clap_builder::util::id"],[62,"core::option"],[63,"std::io::error"],[64,"core::any"]],"i":"A`0``000000000000j011010100000101010101`0101010101B`BbBdBfBh0BjBl","f":"````````````````{bb}000{d{{d{c}}}{}}0{{{d{f}}}{{d{fc}}}{}}0{{}b}`0`{cc{}}0{{{d{h}}}{{n{jl}}}}{{{d{h}}}{{n{A`l}}}}{{{d{fh}}}{{n{jl}}}}{{{d{fh}}}{{n{A`l}}}}{{}{{Ad{Ab}}}}{{{d{Af}}}Ah}{{}c{}}0{{}{{Al{Aj}}}}{c{{n{e}}}{}{}}0{{}{{n{c}}}{}}0{dAn}0{{{d{fj}}{d{h}}}{{n{Ajl}}}}{{{d{fA`}}{d{h}}}{{n{Ajl}}}}{{{d{fj}}{d{fh}}}{{n{Ajl}}}}{{{d{fA`}}{d{fh}}}{{n{Ajl}}}}````````","D":"Cd","p":[[5,"Command",57],[1,"reference",null,null,1],[0,"mut"],[5,"ArgMatches",58],[5,"Cli",0],[8,"Error",59],[6,"Result",60,null,1],[6,"CommandOptions",0],[5,"Id",61],[6,"Option",62,null,1],[1,"str"],[1,"bool"],[1,"unit"],[8,"Result",63],[5,"TypeId",64],[15,"Add",49],[15,"Replace",49],[15,"Play",49],[15,"Remove",49],[15,"Move",49],[15,"Prop",49],[15,"Seek",49]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAB8ABQAAAAAAAwABABEACwAfAAUAJwAKAA==","P":[[20,"T"],[24,""],[28,"T"],[30,""],[36,"U"],[38,""],[39,"U,T"],[41,"U"],[43,""]]}],["mrc",{"t":"PPGPPPPPPSPPNNNNNHNHHHHHHHHHHNNN","n":["GetProperty","LoadFile","MpvCommand","PlaylistClear","PlaylistMove","PlaylistNext","PlaylistPrev","PlaylistRemove","Quit","SOCKET_PATH","Seek","SetProperty","as_str","borrow","borrow_mut","fmt","from","get_property","into","loadfile","playlist_clear","playlist_move","playlist_next","playlist_prev","playlist_remove","quit","seek","send_ipc_command","set_property","try_from","try_into","type_id"],"q":[[0,"mrc"],[32,"core::fmt"],[33,"core::option"],[34,"serde_json::value"],[35,"std::io::error"],[36,"core::result"],[37,"core::any"]],"i":"b0`000000`0000000`0``````````000","f":"````````````{{{d{b}}}{{d{f}}}}{d{{d{c}}}{}}{{{d{h}}}{{d{hc}}}{}}{{{d{b}}{d{hj}}}l}{cc{}}{{{d{f}}{n{{d{f}}}}}{{Ab{{n{A`}}}}}}{{}c{}}{{{d{f}}Ad{n{{d{f}}}}}{{Ab{{n{A`}}}}}}{{{n{{d{f}}}}}{{Ab{{n{A`}}}}}}{{AfAf{n{{d{f}}}}}{{Ab{{n{A`}}}}}}11{{{n{Af}}{n{{d{f}}}}}{{Ab{{n{A`}}}}}}2{{Ah{n{{d{f}}}}}{{Ab{{n{A`}}}}}}{{{d{f}}{d{{Aj{A`}}}}{n{{d{f}}}}}{{Ab{{n{A`}}}}}}{{{d{f}}{d{A`}}{n{{d{f}}}}}{{Ab{{n{A`}}}}}}{c{{Al{e}}}{}{}}{{}{{Al{c}}}{}}{dAn}","D":"Cd","p":[[6,"MpvCommand",0],[1,"reference",null,null,1],[1,"str"],[0,"mut"],[5,"Formatter",32],[8,"Result",32],[6,"Option",33,null,1],[6,"Value",34],[8,"Result",35],[1,"bool"],[1,"usize"],[1,"f64"],[1,"slice"],[6,"Result",36,null,1],[5,"TypeId",37]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAAYAAwAKAAAADgACAB4AAgA=","P":[[13,"T"],[15,""],[16,"T"],[17,""],[18,"U"],[19,""],[29,"U,T"],[30,"U"],[31,""]]}],["server",{"t":"FNNONNNNHNNNNHNHHONNNNN","n":["Config","augment_args","augment_args_for_update","bind","borrow","borrow_mut","command","command_for_update","create_tls_acceptor","from","from_arg_matches","from_arg_matches_mut","group_id","handle_connection","into","main","process_command","socket","try_from","try_into","type_id","update_from_arg_matches","update_from_arg_matches_mut"],"q":[[0,"server"],[23,"clap_builder::builder::command"],[24,"tokio_native_tls"],[25,"core::error"],[26,"alloc::boxed"],[27,"core::result"],[28,"clap_builder::parser::matches::arg_matches"],[29,"clap_builder"],[30,"clap_builder::util::id"],[31,"core::option"],[32,"tokio::net::tcp::stream"],[33,"alloc::sync"],[34,"alloc::string"],[35,"core::any"]],"i":"`Ab000000`0000`0``000000","f":"`{bb}0`{d{{d{c}}}{}}{{{d{f}}}{{d{fc}}}{}}{{}b}0{{}{{n{h{l{j}}}}}}{cc{}}{{{d{A`}}}{{n{AbAd}}}}{{{d{fA`}}}{{n{AbAd}}}}{{}{{Ah{Af}}}}{{Aj{Al{h}}}{{n{An{l{j}}}}}}{{}c{}}{{}{{n{An{l{j}}}}}}{{{d{B`}}}{{n{BbBb}}}}`{c{{n{e}}}{}{}}{{}{{n{c}}}{}}{dBd}{{{d{fAb}}{d{A`}}}{{n{AnAd}}}}{{{d{fAb}}{d{fA`}}}{{n{AnAd}}}}","D":"h","p":[[5,"Command",23],[1,"reference",null,null,1],[0,"mut"],[5,"TlsAcceptor",24],[10,"Error",25],[5,"Box",26,null,1],[6,"Result",27,null,1],[5,"ArgMatches",28],[5,"Config",0],[8,"Error",29],[5,"Id",30],[6,"Option",31,null,1],[5,"TcpStream",32],[5,"Arc",33,null,1],[1,"unit"],[1,"str"],[5,"String",34],[5,"TypeId",35]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAABMABQAAAAMABQAEAAsAAwAQAAEAEwAEAA==","P":[[4,"T"],[6,""],[9,"T"],[10,""],[14,"U"],[15,""],[18,"U,T"],[19,"U"],[20,""]]}]]'));
|
||||||
|
if (typeof exports !== 'undefined') exports.searchIndex = searchIndex;
|
||||||
|
else if (window.initSearch) window.initSearch(searchIndex);
|
||||||
|
//{"start":39,"fragment_lengths":[1891,1481,1570]}
|
||||||
1
search.desc/cli/cli-desc-0-.js
Normal file
1
search.desc/cli/cli-desc-0-.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
searchState.loadedDescShard("cli", 0, "Add files to the playlist\nClear the entire playlist\nEnter interactive mode to send commands to MPV IPC\nList all the items in the playlist\nMove an item in the playlist from one index to another\nSkip to the next item in the playlist\nPause the currently playing media\nPlay media at the specified index in the playlist\nSkip to the previous item in the playlist\nFetch properties of the current playback or playlist\nRemove an item from the playlist\nReplace the current playlist with new files\nSeek to a specific position in the currently playing media\nStop the playback and quit MPV\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls <code>U::from(self)</code>.\nCalls <code>U::from(self)</code>.\nThe filenames of the files to add\nThe filenames of the files to replace the playlist with\nThe index of the media to play\nThe index of the item to remove (optional)\nThe index of the item to move\nThe index to move the item to\nThe properties to fetch\nThe number of seconds to seek to")
|
||||||
1
search.desc/mrc/mrc-desc-0-.js
Normal file
1
search.desc/mrc/mrc-desc-0-.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
searchState.loadedDescShard("mrc", 0, "MRC A library for interacting with the MPV media player …\nRetrieves the value of a property in MPV.\nLoads a file into MPV.\nRepresents common MPV commands.\nClears all items from the playlist.\nMoves an item in the playlist from one index to another.\nMoves to the next item in the playlist.\nMoves to the previous item in the playlist.\nRemoves an item from the playlist.\nQuits the MPV application.\nSeeks to a specific time in the current media.\nSets a property to a specified value in MPV.\nConverts MPV commands to their string equivalents.\nReturns the argument unchanged.\nSends the <code>get_property</code> command to retrieve a property …\nCalls <code>U::from(self)</code>.\nSends the <code>loadfile</code> command to load a file into MPV.\nSends the <code>playlist-clear</code> command to clear the playlist.\nSends the <code>playlist-move</code> command to move a playlist item …\nSends the <code>playlist-next</code> command to move to the next …\nSends the <code>playlist-prev</code> command to move to the previous …\nSends the <code>playlist-remove</code> command to remove an item from …\nSends the <code>quit</code> command to terminate MPV.\nSends the <code>seek</code> command to seek the media playback by a …\nSends a generic IPC command to the specified socket and …\nSends the <code>set_property</code> command to MPV to change a property …")
|
||||||
1
search.desc/server/server-desc-0-.js
Normal file
1
search.desc/server/server-desc-0-.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
searchState.loadedDescShard("server", 0, "The IP address and port to bind the server to\nReturns the argument unchanged.\nCalls <code>U::from(self)</code>.\nPath to MPV IPC socket")
|
||||||
1
server/all.html
Normal file
1
server/all.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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="List of all items in this crate"><title>List of all items in this crate</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="server" 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="../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 sys"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../server/index.html">server</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</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"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="struct.Config.html">Config</a></li></ul><h3 id="functions">Functions</h3><ul class="all-items"><li><a href="fn.create_tls_acceptor.html">create_tls_acceptor</a></li><li><a href="fn.handle_connection.html">handle_connection</a></li><li><a href="fn.main.html">main</a></li><li><a href="fn.process_command.html">process_command</a></li></ul></section></div></main></body></html>
|
||||||
1
server/fn.create_tls_acceptor.html
Normal file
1
server/fn.create_tls_acceptor.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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 `create_tls_acceptor` fn in crate `server`."><title>create_tls_acceptor in server - 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="server" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../server/index.html">server</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><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"><span class="rustdoc-breadcrumbs"><a href="index.html">server</a></span><h1>Function <span class="fn">create_tls_acceptor</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/server/server.rs.html#163-176">Source</a> </span></div><pre class="rust item-decl"><code>pub(crate) fn create_tls_acceptor() -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://docs.rs/tokio-native-tls/0.3.0/tokio_native_tls/struct.TlsAcceptor.html" title="struct tokio_native_tls::TlsAcceptor">TlsAcceptor</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>>></code></pre></section></div></main></body></html>
|
||||||
4
server/fn.handle_connection.html
Normal file
4
server/fn.handle_connection.html
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
<!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 `handle_connection` fn in crate `server`."><title>handle_connection in server - 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="server" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../server/index.html">server</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><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"><span class="rustdoc-breadcrumbs"><a href="index.html">server</a></span><h1>Function <span class="fn">handle_connection</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/server/server.rs.html#26-82">Source</a> </span></div><pre class="rust item-decl"><code>pub(crate) async fn handle_connection(
|
||||||
|
stream: TcpStream,
|
||||||
|
acceptor: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="https://docs.rs/tokio-native-tls/0.3.0/tokio_native_tls/struct.TlsAcceptor.html" title="struct tokio_native_tls::TlsAcceptor">TlsAcceptor</a>>,
|
||||||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>>></code></pre></section></div></main></body></html>
|
||||||
1
server/fn.main.html
Normal file
1
server/fn.main.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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 `main` fn in crate `server`."><title>main in server - 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="server" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../server/index.html">server</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><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"><span class="rustdoc-breadcrumbs"><a href="index.html">server</a></span><h1>Function <span class="fn">main</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/server/server.rs.html#179-211">Source</a> </span></div><pre class="rust item-decl"><code>pub(crate) fn main() -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>>></code></pre></section></div></main></body></html>
|
||||||
1
server/fn.process_command.html
Normal file
1
server/fn.process_command.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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 `process_command` fn in crate `server`."><title>process_command in server - 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="server" 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 fn"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../server/index.html">server</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><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"><span class="rustdoc-breadcrumbs"><a href="index.html">server</a></span><h1>Function <span class="fn">process_command</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/server/server.rs.html#84-161">Source</a> </span></div><pre class="rust item-decl"><code>pub(crate) async fn process_command(command: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code></pre></section></div></main></body></html>
|
||||||
1
server/index.html
Normal file
1
server/index.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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 `server` crate."><title>server - 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="server" 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="../crates.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 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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../server/index.html">server</a><span class="version">0.1.0</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="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</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>server</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/server/server.rs.html#1-211">Source</a> </span></div><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.Config.html" title="struct server::Config">Config</a><span title="Restricted Visibility"> 🔒</span> </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.create_tls_acceptor.html" title="fn server::create_tls_acceptor">create_<wbr>tls_<wbr>acceptor</a><span title="Restricted Visibility"> 🔒</span> </div></li><li><div class="item-name"><a class="fn" href="fn.handle_connection.html" title="fn server::handle_connection">handle_<wbr>connection</a><span title="Restricted Visibility"> 🔒</span> </div></li><li><div class="item-name"><a class="fn" href="fn.main.html" title="fn server::main">main</a><span title="Restricted Visibility"> 🔒</span> </div></li><li><div class="item-name"><a class="fn" href="fn.process_command.html" title="fn server::process_command">process_<wbr>command</a><span title="Restricted Visibility"> 🔒</span> </div></li></ul></section></div></main></body></html>
|
||||||
1
server/sidebar-items.js
Normal file
1
server/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
window.SIDEBAR_ITEMS = {"fn":["create_tls_acceptor","handle_connection","main","process_command"],"struct":["Config"]};
|
||||||
39
server/struct.Config.html
Normal file
39
server/struct.Config.html
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
<!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 `Config` struct in crate `server`."><title>Config in server - 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="server" 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 struct"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../server/index.html">server</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Config</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.bind" title="bind">bind</a></li><li><a href="#structfield.socket" title="socket">socket</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Args-for-Config" title="Args">Args</a></li><li><a href="#impl-CommandFactory-for-Config" title="CommandFactory">CommandFactory</a></li><li><a href="#impl-FromArgMatches-for-Config" title="FromArgMatches">FromArgMatches</a></li><li><a href="#impl-Parser-for-Config" title="Parser">Parser</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Config" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Config" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Config" title="Send">Send</a></li><li><a href="#impl-Sync-for-Config" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Config" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Config" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate server</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">server</a></span><h1>Struct <span class="struct">Config</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/server/server.rs.html#16-24">Source</a> </span></div><pre class="rust item-decl"><code>pub(crate) struct Config {
|
||||||
|
pub(crate) bind: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||||
|
pub(crate) socket: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||||
|
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.bind" class="structfield section-header"><a href="#structfield.bind" class="anchor field">§</a><code>bind: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><div class="docblock"><p>The IP address and port to bind the server to</p>
|
||||||
|
</div><span id="structfield.socket" class="structfield section-header"><a href="#structfield.socket" class="anchor field">§</a><code>socket: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><div class="docblock"><p>Path to MPV IPC socket</p>
|
||||||
|
</div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Args-for-Config" class="impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#impl-Args-for-Config" class="anchor">§</a><h3 class="code-header">impl Args for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.group_id" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.group_id" class="anchor">§</a><h4 class="code-header">fn <a class="fn">group_id</a>() -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Id></h4></section></summary><div class='docblock'>Report the [<code>ArgGroup::id</code>][crate::ArgGroup::id] for this set of arguments</div></details><details class="toggle method-toggle" open><summary><section id="method.augment_args" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.augment_args" class="anchor">§</a><h4 class="code-header">fn <a class="fn">augment_args</a><'b>(__clap_app: Command) -> Command</h4></section></summary><div class='docblock'>Append to [<code>Command</code>] so it can instantiate <code>Self</code> via
|
||||||
|
[<code>FromArgMatches::from_arg_matches_mut</code>] <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.augment_args_for_update" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.augment_args_for_update" class="anchor">§</a><h4 class="code-header">fn <a class="fn">augment_args_for_update</a><'b>(__clap_app: Command) -> Command</h4></section></summary><div class='docblock'>Append to [<code>Command</code>] so it can instantiate <code>self</code> via
|
||||||
|
[<code>FromArgMatches::update_from_arg_matches_mut</code>] <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-CommandFactory-for-Config" class="impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#impl-CommandFactory-for-Config" class="anchor">§</a><h3 class="code-header">impl CommandFactory for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.command" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.command" class="anchor">§</a><h4 class="code-header">fn <a class="fn">command</a><'b>() -> Command</h4></section></summary><div class='docblock'>Build a [<code>Command</code>] that can instantiate <code>Self</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.command_for_update" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.command_for_update" class="anchor">§</a><h4 class="code-header">fn <a class="fn">command_for_update</a><'b>() -> Command</h4></section></summary><div class='docblock'>Build a [<code>Command</code>] that can update <code>self</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromArgMatches-for-Config" class="impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#impl-FromArgMatches-for-Config" class="anchor">§</a><h3 class="code-header">impl FromArgMatches for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_arg_matches" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.from_arg_matches" class="anchor">§</a><h4 class="code-header">fn <a class="fn">from_arg_matches</a>(__clap_arg_matches: &ArgMatches) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><div class='docblock'>Instantiate <code>Self</code> from [<code>ArgMatches</code>], parsing the arguments as needed. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.from_arg_matches_mut" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.from_arg_matches_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">from_arg_matches_mut</a>(
|
||||||
|
__clap_arg_matches: &mut ArgMatches,
|
||||||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><div class='docblock'>Instantiate <code>Self</code> from [<code>ArgMatches</code>], parsing the arguments as needed. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.update_from_arg_matches" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.update_from_arg_matches" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_from_arg_matches</a>(
|
||||||
|
&mut self,
|
||||||
|
__clap_arg_matches: &ArgMatches,
|
||||||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, Error></h4></section></summary><div class='docblock'>Assign values from <code>ArgMatches</code> to <code>self</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.update_from_arg_matches_mut" class="method trait-impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#method.update_from_arg_matches_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_from_arg_matches_mut</a>(
|
||||||
|
&mut self,
|
||||||
|
__clap_arg_matches: &mut ArgMatches,
|
||||||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, Error></h4></section></summary><div class='docblock'>Assign values from <code>ArgMatches</code> to <code>self</code>.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Parser-for-Config" class="impl"><a class="src rightside" href="../src/server/server.rs.html#14">Source</a><a href="#impl-Parser-for-Config" class="anchor">§</a><h3 class="code-header">impl Parser for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.parse" class="method trait-impl"><a href="#method.parse" class="anchor">§</a><h4 class="code-header">fn <a class="fn">parse</a>() -> Self</h4></section></summary><div class='docblock'>Parse from <code>std::env::args_os()</code>, [exit][Error::exit] on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_parse" class="method trait-impl"><a href="#method.try_parse" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_parse</a>() -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><div class='docblock'>Parse from <code>std::env::args_os()</code>, return Err on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.parse_from" class="method trait-impl"><a href="#method.parse_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">parse_from</a><I, T>(itr: I) -> Self<div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Parse from iterator, [exit][Error::exit] on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_parse_from" class="method trait-impl"><a href="#method.try_parse_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_parse_from</a><I, T>(itr: I) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, Error><div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Parse from iterator, return Err on error.</div></details><details class="toggle method-toggle" open><summary><section id="method.update_from" class="method trait-impl"><a href="#method.update_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_from</a><I, T>(&mut self, itr: I)<div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Update from iterator, [exit][Error::exit] on error. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_update_from" class="method trait-impl"><a href="#method.try_update_from" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_update_from</a><I, T>(&mut self, itr: I) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.unit.html">()</a>, Error><div class="where">where
|
||||||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = T>,
|
||||||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Update from iterator, return Err on error.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Config" class="impl"><a href="#impl-Freeze-for-Config" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section><section id="impl-RefUnwindSafe-for-Config" class="impl"><a href="#impl-RefUnwindSafe-for-Config" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section><section id="impl-Send-for-Config" class="impl"><a href="#impl-Send-for-Config" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section><section id="impl-Sync-for-Config" class="impl"><a href="#impl-Sync-for-Config" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section><section id="impl-Unpin-for-Config" class="impl"><a href="#impl-Unpin-for-Config" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section><section id="impl-UnwindSafe-for-Config" class="impl"><a href="#impl-UnwindSafe-for-Config" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Config.html" title="struct server::Config">Config</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||||||
|
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||||||
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||||||
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||||||
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
|
||||||
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
|
||||||
|
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||||||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||||||
|
<p>That is, this conversion is whatever the implementation of
|
||||||
|
<code><a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||||||
|
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||||||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||||||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.1/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
||||||
|
S: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||||||
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||||||
|
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html>
|
||||||
1
settings.html
Normal file
1
settings.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<!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="Settings of Rustdoc"><title>Settings</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="server" 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="./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 sys"><!--[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="./index.html"><img class="rust-logo" src="./static.files/rust-logo-9a9549ea.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-9a9549ea.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.84.1</span></h2></div><div class="version">(e71f9a9a9 2025-01-27)</div><h2 class="location">Settings</h2><div class="sidebar-elems"></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>Rustdoc settings</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section>You need to enable JavaScript be able to update your settings.</section></noscript><script defer src="./static.files/settings-0f613d39.js"></script></section></div></main></body></html>
|
||||||
3
src-files.js
Normal file
3
src-files.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
var srcIndex = new Map(JSON.parse('[["cli",["",[],["cli.rs"]]],["mrc",["",[],["lib.rs"]]],["server",["",[],["server.rs"]]]]'));
|
||||||
|
createSrcSidebar();
|
||||||
|
//{"start":36,"fragment_lengths":[26,27,33]}
|
||||||
685
src/cli/cli.rs.html
Normal file
685
src/cli/cli.rs.html
Normal file
|
|
@ -0,0 +1,685 @@
|
||||||
|
<!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="Source of the Rust file `src/cli.rs`."><title>cli.rs - source</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="cli" 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="../../static.files/src-script-56102188.js"></script><script defer src="../../src-files.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 src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title"><h2>Files</h2></div></nav><div class="sidebar-resizer"></div><main><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1><div class="sub-heading">cli/</div>cli.rs</h1><rustdoc-toolbar></rustdoc-toolbar></div><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers">
|
||||||
|
<a href="#1" id="1">1</a>
|
||||||
|
<a href="#2" id="2">2</a>
|
||||||
|
<a href="#3" id="3">3</a>
|
||||||
|
<a href="#4" id="4">4</a>
|
||||||
|
<a href="#5" id="5">5</a>
|
||||||
|
<a href="#6" id="6">6</a>
|
||||||
|
<a href="#7" id="7">7</a>
|
||||||
|
<a href="#8" id="8">8</a>
|
||||||
|
<a href="#9" id="9">9</a>
|
||||||
|
<a href="#10" id="10">10</a>
|
||||||
|
<a href="#11" id="11">11</a>
|
||||||
|
<a href="#12" id="12">12</a>
|
||||||
|
<a href="#13" id="13">13</a>
|
||||||
|
<a href="#14" id="14">14</a>
|
||||||
|
<a href="#15" id="15">15</a>
|
||||||
|
<a href="#16" id="16">16</a>
|
||||||
|
<a href="#17" id="17">17</a>
|
||||||
|
<a href="#18" id="18">18</a>
|
||||||
|
<a href="#19" id="19">19</a>
|
||||||
|
<a href="#20" id="20">20</a>
|
||||||
|
<a href="#21" id="21">21</a>
|
||||||
|
<a href="#22" id="22">22</a>
|
||||||
|
<a href="#23" id="23">23</a>
|
||||||
|
<a href="#24" id="24">24</a>
|
||||||
|
<a href="#25" id="25">25</a>
|
||||||
|
<a href="#26" id="26">26</a>
|
||||||
|
<a href="#27" id="27">27</a>
|
||||||
|
<a href="#28" id="28">28</a>
|
||||||
|
<a href="#29" id="29">29</a>
|
||||||
|
<a href="#30" id="30">30</a>
|
||||||
|
<a href="#31" id="31">31</a>
|
||||||
|
<a href="#32" id="32">32</a>
|
||||||
|
<a href="#33" id="33">33</a>
|
||||||
|
<a href="#34" id="34">34</a>
|
||||||
|
<a href="#35" id="35">35</a>
|
||||||
|
<a href="#36" id="36">36</a>
|
||||||
|
<a href="#37" id="37">37</a>
|
||||||
|
<a href="#38" id="38">38</a>
|
||||||
|
<a href="#39" id="39">39</a>
|
||||||
|
<a href="#40" id="40">40</a>
|
||||||
|
<a href="#41" id="41">41</a>
|
||||||
|
<a href="#42" id="42">42</a>
|
||||||
|
<a href="#43" id="43">43</a>
|
||||||
|
<a href="#44" id="44">44</a>
|
||||||
|
<a href="#45" id="45">45</a>
|
||||||
|
<a href="#46" id="46">46</a>
|
||||||
|
<a href="#47" id="47">47</a>
|
||||||
|
<a href="#48" id="48">48</a>
|
||||||
|
<a href="#49" id="49">49</a>
|
||||||
|
<a href="#50" id="50">50</a>
|
||||||
|
<a href="#51" id="51">51</a>
|
||||||
|
<a href="#52" id="52">52</a>
|
||||||
|
<a href="#53" id="53">53</a>
|
||||||
|
<a href="#54" id="54">54</a>
|
||||||
|
<a href="#55" id="55">55</a>
|
||||||
|
<a href="#56" id="56">56</a>
|
||||||
|
<a href="#57" id="57">57</a>
|
||||||
|
<a href="#58" id="58">58</a>
|
||||||
|
<a href="#59" id="59">59</a>
|
||||||
|
<a href="#60" id="60">60</a>
|
||||||
|
<a href="#61" id="61">61</a>
|
||||||
|
<a href="#62" id="62">62</a>
|
||||||
|
<a href="#63" id="63">63</a>
|
||||||
|
<a href="#64" id="64">64</a>
|
||||||
|
<a href="#65" id="65">65</a>
|
||||||
|
<a href="#66" id="66">66</a>
|
||||||
|
<a href="#67" id="67">67</a>
|
||||||
|
<a href="#68" id="68">68</a>
|
||||||
|
<a href="#69" id="69">69</a>
|
||||||
|
<a href="#70" id="70">70</a>
|
||||||
|
<a href="#71" id="71">71</a>
|
||||||
|
<a href="#72" id="72">72</a>
|
||||||
|
<a href="#73" id="73">73</a>
|
||||||
|
<a href="#74" id="74">74</a>
|
||||||
|
<a href="#75" id="75">75</a>
|
||||||
|
<a href="#76" id="76">76</a>
|
||||||
|
<a href="#77" id="77">77</a>
|
||||||
|
<a href="#78" id="78">78</a>
|
||||||
|
<a href="#79" id="79">79</a>
|
||||||
|
<a href="#80" id="80">80</a>
|
||||||
|
<a href="#81" id="81">81</a>
|
||||||
|
<a href="#82" id="82">82</a>
|
||||||
|
<a href="#83" id="83">83</a>
|
||||||
|
<a href="#84" id="84">84</a>
|
||||||
|
<a href="#85" id="85">85</a>
|
||||||
|
<a href="#86" id="86">86</a>
|
||||||
|
<a href="#87" id="87">87</a>
|
||||||
|
<a href="#88" id="88">88</a>
|
||||||
|
<a href="#89" id="89">89</a>
|
||||||
|
<a href="#90" id="90">90</a>
|
||||||
|
<a href="#91" id="91">91</a>
|
||||||
|
<a href="#92" id="92">92</a>
|
||||||
|
<a href="#93" id="93">93</a>
|
||||||
|
<a href="#94" id="94">94</a>
|
||||||
|
<a href="#95" id="95">95</a>
|
||||||
|
<a href="#96" id="96">96</a>
|
||||||
|
<a href="#97" id="97">97</a>
|
||||||
|
<a href="#98" id="98">98</a>
|
||||||
|
<a href="#99" id="99">99</a>
|
||||||
|
<a href="#100" id="100">100</a>
|
||||||
|
<a href="#101" id="101">101</a>
|
||||||
|
<a href="#102" id="102">102</a>
|
||||||
|
<a href="#103" id="103">103</a>
|
||||||
|
<a href="#104" id="104">104</a>
|
||||||
|
<a href="#105" id="105">105</a>
|
||||||
|
<a href="#106" id="106">106</a>
|
||||||
|
<a href="#107" id="107">107</a>
|
||||||
|
<a href="#108" id="108">108</a>
|
||||||
|
<a href="#109" id="109">109</a>
|
||||||
|
<a href="#110" id="110">110</a>
|
||||||
|
<a href="#111" id="111">111</a>
|
||||||
|
<a href="#112" id="112">112</a>
|
||||||
|
<a href="#113" id="113">113</a>
|
||||||
|
<a href="#114" id="114">114</a>
|
||||||
|
<a href="#115" id="115">115</a>
|
||||||
|
<a href="#116" id="116">116</a>
|
||||||
|
<a href="#117" id="117">117</a>
|
||||||
|
<a href="#118" id="118">118</a>
|
||||||
|
<a href="#119" id="119">119</a>
|
||||||
|
<a href="#120" id="120">120</a>
|
||||||
|
<a href="#121" id="121">121</a>
|
||||||
|
<a href="#122" id="122">122</a>
|
||||||
|
<a href="#123" id="123">123</a>
|
||||||
|
<a href="#124" id="124">124</a>
|
||||||
|
<a href="#125" id="125">125</a>
|
||||||
|
<a href="#126" id="126">126</a>
|
||||||
|
<a href="#127" id="127">127</a>
|
||||||
|
<a href="#128" id="128">128</a>
|
||||||
|
<a href="#129" id="129">129</a>
|
||||||
|
<a href="#130" id="130">130</a>
|
||||||
|
<a href="#131" id="131">131</a>
|
||||||
|
<a href="#132" id="132">132</a>
|
||||||
|
<a href="#133" id="133">133</a>
|
||||||
|
<a href="#134" id="134">134</a>
|
||||||
|
<a href="#135" id="135">135</a>
|
||||||
|
<a href="#136" id="136">136</a>
|
||||||
|
<a href="#137" id="137">137</a>
|
||||||
|
<a href="#138" id="138">138</a>
|
||||||
|
<a href="#139" id="139">139</a>
|
||||||
|
<a href="#140" id="140">140</a>
|
||||||
|
<a href="#141" id="141">141</a>
|
||||||
|
<a href="#142" id="142">142</a>
|
||||||
|
<a href="#143" id="143">143</a>
|
||||||
|
<a href="#144" id="144">144</a>
|
||||||
|
<a href="#145" id="145">145</a>
|
||||||
|
<a href="#146" id="146">146</a>
|
||||||
|
<a href="#147" id="147">147</a>
|
||||||
|
<a href="#148" id="148">148</a>
|
||||||
|
<a href="#149" id="149">149</a>
|
||||||
|
<a href="#150" id="150">150</a>
|
||||||
|
<a href="#151" id="151">151</a>
|
||||||
|
<a href="#152" id="152">152</a>
|
||||||
|
<a href="#153" id="153">153</a>
|
||||||
|
<a href="#154" id="154">154</a>
|
||||||
|
<a href="#155" id="155">155</a>
|
||||||
|
<a href="#156" id="156">156</a>
|
||||||
|
<a href="#157" id="157">157</a>
|
||||||
|
<a href="#158" id="158">158</a>
|
||||||
|
<a href="#159" id="159">159</a>
|
||||||
|
<a href="#160" id="160">160</a>
|
||||||
|
<a href="#161" id="161">161</a>
|
||||||
|
<a href="#162" id="162">162</a>
|
||||||
|
<a href="#163" id="163">163</a>
|
||||||
|
<a href="#164" id="164">164</a>
|
||||||
|
<a href="#165" id="165">165</a>
|
||||||
|
<a href="#166" id="166">166</a>
|
||||||
|
<a href="#167" id="167">167</a>
|
||||||
|
<a href="#168" id="168">168</a>
|
||||||
|
<a href="#169" id="169">169</a>
|
||||||
|
<a href="#170" id="170">170</a>
|
||||||
|
<a href="#171" id="171">171</a>
|
||||||
|
<a href="#172" id="172">172</a>
|
||||||
|
<a href="#173" id="173">173</a>
|
||||||
|
<a href="#174" id="174">174</a>
|
||||||
|
<a href="#175" id="175">175</a>
|
||||||
|
<a href="#176" id="176">176</a>
|
||||||
|
<a href="#177" id="177">177</a>
|
||||||
|
<a href="#178" id="178">178</a>
|
||||||
|
<a href="#179" id="179">179</a>
|
||||||
|
<a href="#180" id="180">180</a>
|
||||||
|
<a href="#181" id="181">181</a>
|
||||||
|
<a href="#182" id="182">182</a>
|
||||||
|
<a href="#183" id="183">183</a>
|
||||||
|
<a href="#184" id="184">184</a>
|
||||||
|
<a href="#185" id="185">185</a>
|
||||||
|
<a href="#186" id="186">186</a>
|
||||||
|
<a href="#187" id="187">187</a>
|
||||||
|
<a href="#188" id="188">188</a>
|
||||||
|
<a href="#189" id="189">189</a>
|
||||||
|
<a href="#190" id="190">190</a>
|
||||||
|
<a href="#191" id="191">191</a>
|
||||||
|
<a href="#192" id="192">192</a>
|
||||||
|
<a href="#193" id="193">193</a>
|
||||||
|
<a href="#194" id="194">194</a>
|
||||||
|
<a href="#195" id="195">195</a>
|
||||||
|
<a href="#196" id="196">196</a>
|
||||||
|
<a href="#197" id="197">197</a>
|
||||||
|
<a href="#198" id="198">198</a>
|
||||||
|
<a href="#199" id="199">199</a>
|
||||||
|
<a href="#200" id="200">200</a>
|
||||||
|
<a href="#201" id="201">201</a>
|
||||||
|
<a href="#202" id="202">202</a>
|
||||||
|
<a href="#203" id="203">203</a>
|
||||||
|
<a href="#204" id="204">204</a>
|
||||||
|
<a href="#205" id="205">205</a>
|
||||||
|
<a href="#206" id="206">206</a>
|
||||||
|
<a href="#207" id="207">207</a>
|
||||||
|
<a href="#208" id="208">208</a>
|
||||||
|
<a href="#209" id="209">209</a>
|
||||||
|
<a href="#210" id="210">210</a>
|
||||||
|
<a href="#211" id="211">211</a>
|
||||||
|
<a href="#212" id="212">212</a>
|
||||||
|
<a href="#213" id="213">213</a>
|
||||||
|
<a href="#214" id="214">214</a>
|
||||||
|
<a href="#215" id="215">215</a>
|
||||||
|
<a href="#216" id="216">216</a>
|
||||||
|
<a href="#217" id="217">217</a>
|
||||||
|
<a href="#218" id="218">218</a>
|
||||||
|
<a href="#219" id="219">219</a>
|
||||||
|
<a href="#220" id="220">220</a>
|
||||||
|
<a href="#221" id="221">221</a>
|
||||||
|
<a href="#222" id="222">222</a>
|
||||||
|
<a href="#223" id="223">223</a>
|
||||||
|
<a href="#224" id="224">224</a>
|
||||||
|
<a href="#225" id="225">225</a>
|
||||||
|
<a href="#226" id="226">226</a>
|
||||||
|
<a href="#227" id="227">227</a>
|
||||||
|
<a href="#228" id="228">228</a>
|
||||||
|
<a href="#229" id="229">229</a>
|
||||||
|
<a href="#230" id="230">230</a>
|
||||||
|
<a href="#231" id="231">231</a>
|
||||||
|
<a href="#232" id="232">232</a>
|
||||||
|
<a href="#233" id="233">233</a>
|
||||||
|
<a href="#234" id="234">234</a>
|
||||||
|
<a href="#235" id="235">235</a>
|
||||||
|
<a href="#236" id="236">236</a>
|
||||||
|
<a href="#237" id="237">237</a>
|
||||||
|
<a href="#238" id="238">238</a>
|
||||||
|
<a href="#239" id="239">239</a>
|
||||||
|
<a href="#240" id="240">240</a>
|
||||||
|
<a href="#241" id="241">241</a>
|
||||||
|
<a href="#242" id="242">242</a>
|
||||||
|
<a href="#243" id="243">243</a>
|
||||||
|
<a href="#244" id="244">244</a>
|
||||||
|
<a href="#245" id="245">245</a>
|
||||||
|
<a href="#246" id="246">246</a>
|
||||||
|
<a href="#247" id="247">247</a>
|
||||||
|
<a href="#248" id="248">248</a>
|
||||||
|
<a href="#249" id="249">249</a>
|
||||||
|
<a href="#250" id="250">250</a>
|
||||||
|
<a href="#251" id="251">251</a>
|
||||||
|
<a href="#252" id="252">252</a>
|
||||||
|
<a href="#253" id="253">253</a>
|
||||||
|
<a href="#254" id="254">254</a>
|
||||||
|
<a href="#255" id="255">255</a>
|
||||||
|
<a href="#256" id="256">256</a>
|
||||||
|
<a href="#257" id="257">257</a>
|
||||||
|
<a href="#258" id="258">258</a>
|
||||||
|
<a href="#259" id="259">259</a>
|
||||||
|
<a href="#260" id="260">260</a>
|
||||||
|
<a href="#261" id="261">261</a>
|
||||||
|
<a href="#262" id="262">262</a>
|
||||||
|
<a href="#263" id="263">263</a>
|
||||||
|
<a href="#264" id="264">264</a>
|
||||||
|
<a href="#265" id="265">265</a>
|
||||||
|
<a href="#266" id="266">266</a>
|
||||||
|
<a href="#267" id="267">267</a>
|
||||||
|
<a href="#268" id="268">268</a>
|
||||||
|
<a href="#269" id="269">269</a>
|
||||||
|
<a href="#270" id="270">270</a>
|
||||||
|
<a href="#271" id="271">271</a>
|
||||||
|
<a href="#272" id="272">272</a>
|
||||||
|
<a href="#273" id="273">273</a>
|
||||||
|
<a href="#274" id="274">274</a>
|
||||||
|
<a href="#275" id="275">275</a>
|
||||||
|
<a href="#276" id="276">276</a>
|
||||||
|
<a href="#277" id="277">277</a>
|
||||||
|
<a href="#278" id="278">278</a>
|
||||||
|
<a href="#279" id="279">279</a>
|
||||||
|
<a href="#280" id="280">280</a>
|
||||||
|
<a href="#281" id="281">281</a>
|
||||||
|
<a href="#282" id="282">282</a>
|
||||||
|
<a href="#283" id="283">283</a>
|
||||||
|
<a href="#284" id="284">284</a>
|
||||||
|
<a href="#285" id="285">285</a>
|
||||||
|
<a href="#286" id="286">286</a>
|
||||||
|
<a href="#287" id="287">287</a>
|
||||||
|
<a href="#288" id="288">288</a>
|
||||||
|
<a href="#289" id="289">289</a>
|
||||||
|
<a href="#290" id="290">290</a>
|
||||||
|
<a href="#291" id="291">291</a>
|
||||||
|
<a href="#292" id="292">292</a>
|
||||||
|
<a href="#293" id="293">293</a>
|
||||||
|
<a href="#294" id="294">294</a>
|
||||||
|
<a href="#295" id="295">295</a>
|
||||||
|
<a href="#296" id="296">296</a>
|
||||||
|
<a href="#297" id="297">297</a>
|
||||||
|
<a href="#298" id="298">298</a>
|
||||||
|
<a href="#299" id="299">299</a>
|
||||||
|
<a href="#300" id="300">300</a>
|
||||||
|
<a href="#301" id="301">301</a>
|
||||||
|
<a href="#302" id="302">302</a>
|
||||||
|
<a href="#303" id="303">303</a>
|
||||||
|
<a href="#304" id="304">304</a>
|
||||||
|
<a href="#305" id="305">305</a>
|
||||||
|
<a href="#306" id="306">306</a>
|
||||||
|
<a href="#307" id="307">307</a>
|
||||||
|
<a href="#308" id="308">308</a>
|
||||||
|
<a href="#309" id="309">309</a>
|
||||||
|
<a href="#310" id="310">310</a>
|
||||||
|
<a href="#311" id="311">311</a>
|
||||||
|
<a href="#312" id="312">312</a>
|
||||||
|
<a href="#313" id="313">313</a>
|
||||||
|
<a href="#314" id="314">314</a>
|
||||||
|
<a href="#315" id="315">315</a>
|
||||||
|
<a href="#316" id="316">316</a>
|
||||||
|
<a href="#317" id="317">317</a>
|
||||||
|
<a href="#318" id="318">318</a>
|
||||||
|
<a href="#319" id="319">319</a>
|
||||||
|
<a href="#320" id="320">320</a>
|
||||||
|
<a href="#321" id="321">321</a>
|
||||||
|
<a href="#322" id="322">322</a>
|
||||||
|
<a href="#323" id="323">323</a>
|
||||||
|
<a href="#324" id="324">324</a>
|
||||||
|
<a href="#325" id="325">325</a>
|
||||||
|
<a href="#326" id="326">326</a>
|
||||||
|
<a href="#327" id="327">327</a>
|
||||||
|
<a href="#328" id="328">328</a>
|
||||||
|
<a href="#329" id="329">329</a>
|
||||||
|
<a href="#330" id="330">330</a>
|
||||||
|
<a href="#331" id="331">331</a>
|
||||||
|
<a href="#332" id="332">332</a>
|
||||||
|
<a href="#333" id="333">333</a>
|
||||||
|
<a href="#334" id="334">334</a>
|
||||||
|
<a href="#335" id="335">335</a>
|
||||||
|
<a href="#336" id="336">336</a>
|
||||||
|
<a href="#337" id="337">337</a>
|
||||||
|
<a href="#338" id="338">338</a>
|
||||||
|
<a href="#339" id="339">339</a>
|
||||||
|
<a href="#340" id="340">340</a>
|
||||||
|
<a href="#341" id="341">341</a>
|
||||||
|
<a href="#342" id="342">342</a></pre></div><pre class="rust"><code><span class="kw">use </span>clap::{Parser, Subcommand};
|
||||||
|
<span class="kw">use </span>mrc::set_property;
|
||||||
|
<span class="kw">use </span>mrc::SOCKET_PATH;
|
||||||
|
<span class="kw">use </span>mrc::{
|
||||||
|
get_property, loadfile, playlist_clear, playlist_move, playlist_next, playlist_prev,
|
||||||
|
playlist_remove, quit, seek,
|
||||||
|
};
|
||||||
|
<span class="kw">use </span>serde_json::json;
|
||||||
|
<span class="kw">use </span>std::io::{<span class="self">self</span>, Write};
|
||||||
|
<span class="kw">use </span>std::path::PathBuf;
|
||||||
|
<span class="kw">use </span>tracing::{debug, error, info};
|
||||||
|
|
||||||
|
<span class="attr">#[derive(Parser)]
|
||||||
|
#[command(author, version, about)]
|
||||||
|
</span><span class="kw">struct </span>Cli {
|
||||||
|
<span class="attr">#[arg(short, long, global = <span class="bool-val">true</span>)]
|
||||||
|
</span>debug: bool,
|
||||||
|
|
||||||
|
<span class="attr">#[command(subcommand)]
|
||||||
|
</span>command: CommandOptions,
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="attr">#[derive(Subcommand)]
|
||||||
|
</span><span class="kw">enum </span>CommandOptions {
|
||||||
|
<span class="doccomment">/// Play media at the specified index in the playlist
|
||||||
|
</span>Play {
|
||||||
|
<span class="doccomment">/// The index of the media to play
|
||||||
|
</span>index: <span class="prelude-ty">Option</span><usize>,
|
||||||
|
},
|
||||||
|
|
||||||
|
<span class="doccomment">/// Pause the currently playing media
|
||||||
|
</span>Pause,
|
||||||
|
|
||||||
|
<span class="doccomment">/// Stop the playback and quit MPV
|
||||||
|
</span>Stop,
|
||||||
|
|
||||||
|
<span class="doccomment">/// Skip to the next item in the playlist
|
||||||
|
</span>Next,
|
||||||
|
|
||||||
|
<span class="doccomment">/// Skip to the previous item in the playlist
|
||||||
|
</span>Prev,
|
||||||
|
|
||||||
|
<span class="doccomment">/// Seek to a specific position in the currently playing media
|
||||||
|
</span>Seek {
|
||||||
|
<span class="doccomment">/// The number of seconds to seek to
|
||||||
|
</span>seconds: i32,
|
||||||
|
},
|
||||||
|
|
||||||
|
<span class="doccomment">/// Move an item in the playlist from one index to another
|
||||||
|
</span>Move {
|
||||||
|
<span class="doccomment">/// The index of the item to move
|
||||||
|
</span>index1: usize,
|
||||||
|
|
||||||
|
<span class="doccomment">/// The index to move the item to
|
||||||
|
</span>index2: usize,
|
||||||
|
},
|
||||||
|
|
||||||
|
<span class="doccomment">/// Remove an item from the playlist
|
||||||
|
///
|
||||||
|
/// If invoked while playlist has no entries, or if the only entry
|
||||||
|
/// is the active video, then this will exit MPV.
|
||||||
|
</span>Remove {
|
||||||
|
<span class="doccomment">/// The index of the item to remove (optional)
|
||||||
|
</span>index: <span class="prelude-ty">Option</span><usize>,
|
||||||
|
},
|
||||||
|
|
||||||
|
<span class="doccomment">/// Clear the entire playlist
|
||||||
|
</span>Clear,
|
||||||
|
|
||||||
|
<span class="doccomment">/// List all the items in the playlist
|
||||||
|
</span>List,
|
||||||
|
|
||||||
|
<span class="doccomment">/// Add files to the playlist
|
||||||
|
///
|
||||||
|
/// Needs at least one file to be passed.
|
||||||
|
</span>Add {
|
||||||
|
<span class="doccomment">/// The filenames of the files to add
|
||||||
|
</span>filenames: Vec<String>,
|
||||||
|
},
|
||||||
|
|
||||||
|
<span class="doccomment">/// Replace the current playlist with new files
|
||||||
|
</span>Replace {
|
||||||
|
<span class="doccomment">/// The filenames of the files to replace the playlist with
|
||||||
|
</span>filenames: Vec<String>,
|
||||||
|
},
|
||||||
|
|
||||||
|
<span class="doccomment">/// Fetch properties of the current playback or playlist
|
||||||
|
</span>Prop {
|
||||||
|
<span class="doccomment">/// The properties to fetch
|
||||||
|
</span>properties: Vec<String>,
|
||||||
|
},
|
||||||
|
|
||||||
|
<span class="doccomment">/// Enter interactive mode to send commands to MPV IPC
|
||||||
|
</span>Interactive,
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="attr">#[tokio::main]
|
||||||
|
</span><span class="kw">async fn </span>main() -> io::Result<()> {
|
||||||
|
tracing_subscriber::fmt::init();
|
||||||
|
<span class="kw">let </span>cli = Cli::parse();
|
||||||
|
|
||||||
|
<span class="kw">if </span>!PathBuf::from(SOCKET_PATH).exists() {
|
||||||
|
<span class="macro">debug!</span>(SOCKET_PATH);
|
||||||
|
<span class="macro">error!</span>(<span class="string">"Error: MPV socket not found. Is MPV running?"</span>);
|
||||||
|
<span class="kw">return </span><span class="prelude-val">Ok</span>(());
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">match </span>cli.command {
|
||||||
|
CommandOptions::Play { index } => {
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(idx) = index {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Playing media at index: {}"</span>, idx);
|
||||||
|
set_property(<span class="string">"playlist-pos"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(idx), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Unpausing playback"</span>);
|
||||||
|
set_property(<span class="string">"pause"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="bool-val">false</span>), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Pause => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Pausing playback"</span>);
|
||||||
|
set_property(<span class="string">"pause"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="bool-val">true</span>), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Stop => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Stopping playback and quitting MPV"</span>);
|
||||||
|
quit(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Next => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Skipping to next item in the playlist"</span>);
|
||||||
|
playlist_next(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Prev => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Skipping to previous item in the playlist"</span>);
|
||||||
|
playlist_prev(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Seek { seconds } => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Seeking to {} seconds"</span>, seconds);
|
||||||
|
seek(seconds.into(), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Move { index1, index2 } => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Moving item from index {} to {}"</span>, index1, index2);
|
||||||
|
playlist_move(index1, index2, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Remove { index } => {
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(idx) = index {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Removing item at index {}"</span>, idx);
|
||||||
|
playlist_remove(<span class="prelude-val">Some</span>(idx), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
} <span class="kw">else </span>{
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Removing current item from playlist"</span>);
|
||||||
|
playlist_remove(<span class="prelude-val">None</span>, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Clear => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Clearing the playlist"</span>);
|
||||||
|
playlist_clear(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::List => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Listing playlist items"</span>);
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(data) = get_property(<span class="string">"playlist"</span>, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">? </span>{
|
||||||
|
<span class="macro">println!</span>(<span class="string">"{}"</span>, serde_json::to_string_pretty(<span class="kw-2">&</span>data)<span class="question-mark">?</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Add { filenames } => {
|
||||||
|
<span class="kw">if </span>filenames.is_empty() {
|
||||||
|
<span class="kw">let </span>e = <span class="string">"No files provided to add to the playlist"</span>;
|
||||||
|
<span class="macro">error!</span>(<span class="string">"{}"</span>, e);
|
||||||
|
<span class="kw">return </span><span class="prelude-val">Err</span>(io::Error::new(io::ErrorKind::InvalidInput, e));
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Adding {} files to the playlist"</span>, filenames.len());
|
||||||
|
<span class="kw">for </span>filename <span class="kw">in </span>filenames {
|
||||||
|
loadfile(<span class="kw-2">&</span>filename, <span class="bool-val">true</span>, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Replace { filenames } => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Replacing current playlist with {} files"</span>, filenames.len());
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(first_file) = filenames.first() {
|
||||||
|
loadfile(first_file, <span class="bool-val">false</span>, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="kw">for </span>filename <span class="kw">in </span><span class="kw-2">&</span>filenames[<span class="number">1</span>..] {
|
||||||
|
loadfile(filename, <span class="bool-val">true</span>, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Prop { properties } => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Fetching properties: {:?}"</span>, properties);
|
||||||
|
<span class="kw">for </span>property <span class="kw">in </span>properties {
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(data) = get_property(<span class="kw-2">&</span>property, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">? </span>{
|
||||||
|
<span class="macro">println!</span>(<span class="string">"{property}: {data}"</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandOptions::Interactive => {
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Entering interactive mode. Type 'exit' to quit."</span>);
|
||||||
|
<span class="kw">let </span>stdin = io::stdin();
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>stdout = io::stdout();
|
||||||
|
|
||||||
|
<span class="kw">loop </span>{
|
||||||
|
<span class="macro">print!</span>(<span class="string">"mpv> "</span>);
|
||||||
|
stdout.flush()<span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>input = String::new();
|
||||||
|
stdin.read_line(<span class="kw-2">&mut </span>input)<span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span>trimmed = input.trim();
|
||||||
|
|
||||||
|
<span class="kw">if </span>trimmed.eq_ignore_ascii_case(<span class="string">"exit"</span>) {
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Exiting interactive mode."</span>);
|
||||||
|
<span class="kw">break</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="comment">// I don't like this either, but it looks cleaner than a multi-line
|
||||||
|
// print macro just cramped in here.
|
||||||
|
</span><span class="kw">let </span>commands = <span class="macro">vec!</span>[
|
||||||
|
(
|
||||||
|
<span class="string">"play [index]"</span>,
|
||||||
|
<span class="string">"Play or unpause playback, optionally at the specified index"</span>,
|
||||||
|
),
|
||||||
|
(<span class="string">"pause"</span>, <span class="string">"Pause playback"</span>),
|
||||||
|
(<span class="string">"stop"</span>, <span class="string">"Stop playback and quit MPV"</span>),
|
||||||
|
(<span class="string">"next"</span>, <span class="string">"Skip to the next item in the playlist"</span>),
|
||||||
|
(<span class="string">"prev"</span>, <span class="string">"Skip to the previous item in the playlist"</span>),
|
||||||
|
(<span class="string">"seek <seconds>"</span>, <span class="string">"Seek to the specified position"</span>),
|
||||||
|
(<span class="string">"clear"</span>, <span class="string">"Clear the playlist"</span>),
|
||||||
|
(<span class="string">"list"</span>, <span class="string">"List all items in the playlist"</span>),
|
||||||
|
(<span class="string">"add <files>"</span>, <span class="string">"Add files to the playlist"</span>),
|
||||||
|
(<span class="string">"get <property>"</span>, <span class="string">"Get the specified property"</span>),
|
||||||
|
(
|
||||||
|
<span class="string">"set <property> <value>"</span>,
|
||||||
|
<span class="string">"Set the specified property to a value"</span>,
|
||||||
|
),
|
||||||
|
(<span class="string">"exit"</span>, <span class="string">"Quit interactive mode"</span>),
|
||||||
|
];
|
||||||
|
|
||||||
|
<span class="kw">if </span>trimmed.eq_ignore_ascii_case(<span class="string">"help"</span>) {
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Valid commands:"</span>);
|
||||||
|
<span class="kw">for </span>(command, description) <span class="kw">in </span>commands {
|
||||||
|
<span class="macro">println!</span>(<span class="string">" {} - {}"</span>, command, description);
|
||||||
|
}
|
||||||
|
<span class="kw">continue</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">let </span>parts: Vec<<span class="kw-2">&</span>str> = trimmed.split_whitespace().collect();
|
||||||
|
<span class="kw">match </span>parts.as_slice() {
|
||||||
|
[<span class="string">"play"</span>] => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Unpausing playback"</span>);
|
||||||
|
set_property(<span class="string">"pause"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="bool-val">false</span>), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"play"</span>, index] => {
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Ok</span>(idx) = index.parse::<usize>() {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Playing media at index: {}"</span>, idx);
|
||||||
|
set_property(<span class="string">"playlist-pos"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(idx), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
set_property(<span class="string">"pause"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="bool-val">false</span>), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
} <span class="kw">else </span>{
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Invalid index: {}"</span>, index);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"pause"</span>] => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Pausing playback"</span>);
|
||||||
|
set_property(<span class="string">"pause"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="bool-val">true</span>), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"stop"</span>] => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Pausing playback"</span>);
|
||||||
|
quit(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"next"</span>] => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Skipping to next item in the playlist"</span>);
|
||||||
|
playlist_next(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"prev"</span>] => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Skipping to previous item in the playlist"</span>);
|
||||||
|
playlist_prev(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"seek"</span>, seconds] => {
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Ok</span>(sec) = seconds.parse::<i32>() {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Seeking to {} seconds"</span>, sec);
|
||||||
|
seek(sec.into(), <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
} <span class="kw">else </span>{
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Invalid seconds: {}"</span>, seconds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"clear"</span>] => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Clearing the playlist"</span>);
|
||||||
|
playlist_clear(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"list"</span>] => {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Listing playlist items"</span>);
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(data) = get_property(<span class="string">"playlist"</span>, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">? </span>{
|
||||||
|
<span class="macro">println!</span>(<span class="string">"{}"</span>, serde_json::to_string_pretty(<span class="kw-2">&</span>data)<span class="question-mark">?</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"add"</span>, files @ ..] => {
|
||||||
|
<span class="kw">if </span>files.is_empty() {
|
||||||
|
<span class="macro">println!</span>(<span class="string">"No files provided to add to the playlist"</span>);
|
||||||
|
} <span class="kw">else </span>{
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Adding {} files to the playlist"</span>, files.len());
|
||||||
|
<span class="kw">for </span>file <span class="kw">in </span>files {
|
||||||
|
loadfile(file, <span class="bool-val">true</span>, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"get"</span>, property] => {
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(data) = get_property(property, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">? </span>{
|
||||||
|
<span class="macro">println!</span>(<span class="string">"{property}: {data}"</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[<span class="string">"set"</span>, property, value] => {
|
||||||
|
<span class="kw">let </span>json_value = serde_json::from_str::<serde_json::Value>(value)
|
||||||
|
.unwrap_or_else(|<span class="kw">_</span>| <span class="macro">json!</span>(value));
|
||||||
|
set_property(property, <span class="kw-2">&</span>json_value, <span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Set {property} to {value}"</span>);
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">_ </span>=> {
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Unknown command: {}"</span>, trimmed);
|
||||||
|
<span class="macro">println!</span>(<span class="string">"Valid commands: play <index>, pause, stop, next, prev, seek <seconds>, clear, list, add <files>, get <property>, set <property> <value>, exit"</span>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="prelude-val">Ok</span>(())
|
||||||
|
}
|
||||||
|
</code></pre></div></section></main></body></html>
|
||||||
715
src/mrc/lib.rs.html
Normal file
715
src/mrc/lib.rs.html
Normal file
|
|
@ -0,0 +1,715 @@
|
||||||
|
<!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="Source of the Rust file `src/lib.rs`."><title>lib.rs - source</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="mrc" 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="../../static.files/src-script-56102188.js"></script><script defer src="../../src-files.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 src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title"><h2>Files</h2></div></nav><div class="sidebar-resizer"></div><main><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1><div class="sub-heading">mrc/</div>lib.rs</h1><rustdoc-toolbar></rustdoc-toolbar></div><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers">
|
||||||
|
<a href="#1" id="1">1</a>
|
||||||
|
<a href="#2" id="2">2</a>
|
||||||
|
<a href="#3" id="3">3</a>
|
||||||
|
<a href="#4" id="4">4</a>
|
||||||
|
<a href="#5" id="5">5</a>
|
||||||
|
<a href="#6" id="6">6</a>
|
||||||
|
<a href="#7" id="7">7</a>
|
||||||
|
<a href="#8" id="8">8</a>
|
||||||
|
<a href="#9" id="9">9</a>
|
||||||
|
<a href="#10" id="10">10</a>
|
||||||
|
<a href="#11" id="11">11</a>
|
||||||
|
<a href="#12" id="12">12</a>
|
||||||
|
<a href="#13" id="13">13</a>
|
||||||
|
<a href="#14" id="14">14</a>
|
||||||
|
<a href="#15" id="15">15</a>
|
||||||
|
<a href="#16" id="16">16</a>
|
||||||
|
<a href="#17" id="17">17</a>
|
||||||
|
<a href="#18" id="18">18</a>
|
||||||
|
<a href="#19" id="19">19</a>
|
||||||
|
<a href="#20" id="20">20</a>
|
||||||
|
<a href="#21" id="21">21</a>
|
||||||
|
<a href="#22" id="22">22</a>
|
||||||
|
<a href="#23" id="23">23</a>
|
||||||
|
<a href="#24" id="24">24</a>
|
||||||
|
<a href="#25" id="25">25</a>
|
||||||
|
<a href="#26" id="26">26</a>
|
||||||
|
<a href="#27" id="27">27</a>
|
||||||
|
<a href="#28" id="28">28</a>
|
||||||
|
<a href="#29" id="29">29</a>
|
||||||
|
<a href="#30" id="30">30</a>
|
||||||
|
<a href="#31" id="31">31</a>
|
||||||
|
<a href="#32" id="32">32</a>
|
||||||
|
<a href="#33" id="33">33</a>
|
||||||
|
<a href="#34" id="34">34</a>
|
||||||
|
<a href="#35" id="35">35</a>
|
||||||
|
<a href="#36" id="36">36</a>
|
||||||
|
<a href="#37" id="37">37</a>
|
||||||
|
<a href="#38" id="38">38</a>
|
||||||
|
<a href="#39" id="39">39</a>
|
||||||
|
<a href="#40" id="40">40</a>
|
||||||
|
<a href="#41" id="41">41</a>
|
||||||
|
<a href="#42" id="42">42</a>
|
||||||
|
<a href="#43" id="43">43</a>
|
||||||
|
<a href="#44" id="44">44</a>
|
||||||
|
<a href="#45" id="45">45</a>
|
||||||
|
<a href="#46" id="46">46</a>
|
||||||
|
<a href="#47" id="47">47</a>
|
||||||
|
<a href="#48" id="48">48</a>
|
||||||
|
<a href="#49" id="49">49</a>
|
||||||
|
<a href="#50" id="50">50</a>
|
||||||
|
<a href="#51" id="51">51</a>
|
||||||
|
<a href="#52" id="52">52</a>
|
||||||
|
<a href="#53" id="53">53</a>
|
||||||
|
<a href="#54" id="54">54</a>
|
||||||
|
<a href="#55" id="55">55</a>
|
||||||
|
<a href="#56" id="56">56</a>
|
||||||
|
<a href="#57" id="57">57</a>
|
||||||
|
<a href="#58" id="58">58</a>
|
||||||
|
<a href="#59" id="59">59</a>
|
||||||
|
<a href="#60" id="60">60</a>
|
||||||
|
<a href="#61" id="61">61</a>
|
||||||
|
<a href="#62" id="62">62</a>
|
||||||
|
<a href="#63" id="63">63</a>
|
||||||
|
<a href="#64" id="64">64</a>
|
||||||
|
<a href="#65" id="65">65</a>
|
||||||
|
<a href="#66" id="66">66</a>
|
||||||
|
<a href="#67" id="67">67</a>
|
||||||
|
<a href="#68" id="68">68</a>
|
||||||
|
<a href="#69" id="69">69</a>
|
||||||
|
<a href="#70" id="70">70</a>
|
||||||
|
<a href="#71" id="71">71</a>
|
||||||
|
<a href="#72" id="72">72</a>
|
||||||
|
<a href="#73" id="73">73</a>
|
||||||
|
<a href="#74" id="74">74</a>
|
||||||
|
<a href="#75" id="75">75</a>
|
||||||
|
<a href="#76" id="76">76</a>
|
||||||
|
<a href="#77" id="77">77</a>
|
||||||
|
<a href="#78" id="78">78</a>
|
||||||
|
<a href="#79" id="79">79</a>
|
||||||
|
<a href="#80" id="80">80</a>
|
||||||
|
<a href="#81" id="81">81</a>
|
||||||
|
<a href="#82" id="82">82</a>
|
||||||
|
<a href="#83" id="83">83</a>
|
||||||
|
<a href="#84" id="84">84</a>
|
||||||
|
<a href="#85" id="85">85</a>
|
||||||
|
<a href="#86" id="86">86</a>
|
||||||
|
<a href="#87" id="87">87</a>
|
||||||
|
<a href="#88" id="88">88</a>
|
||||||
|
<a href="#89" id="89">89</a>
|
||||||
|
<a href="#90" id="90">90</a>
|
||||||
|
<a href="#91" id="91">91</a>
|
||||||
|
<a href="#92" id="92">92</a>
|
||||||
|
<a href="#93" id="93">93</a>
|
||||||
|
<a href="#94" id="94">94</a>
|
||||||
|
<a href="#95" id="95">95</a>
|
||||||
|
<a href="#96" id="96">96</a>
|
||||||
|
<a href="#97" id="97">97</a>
|
||||||
|
<a href="#98" id="98">98</a>
|
||||||
|
<a href="#99" id="99">99</a>
|
||||||
|
<a href="#100" id="100">100</a>
|
||||||
|
<a href="#101" id="101">101</a>
|
||||||
|
<a href="#102" id="102">102</a>
|
||||||
|
<a href="#103" id="103">103</a>
|
||||||
|
<a href="#104" id="104">104</a>
|
||||||
|
<a href="#105" id="105">105</a>
|
||||||
|
<a href="#106" id="106">106</a>
|
||||||
|
<a href="#107" id="107">107</a>
|
||||||
|
<a href="#108" id="108">108</a>
|
||||||
|
<a href="#109" id="109">109</a>
|
||||||
|
<a href="#110" id="110">110</a>
|
||||||
|
<a href="#111" id="111">111</a>
|
||||||
|
<a href="#112" id="112">112</a>
|
||||||
|
<a href="#113" id="113">113</a>
|
||||||
|
<a href="#114" id="114">114</a>
|
||||||
|
<a href="#115" id="115">115</a>
|
||||||
|
<a href="#116" id="116">116</a>
|
||||||
|
<a href="#117" id="117">117</a>
|
||||||
|
<a href="#118" id="118">118</a>
|
||||||
|
<a href="#119" id="119">119</a>
|
||||||
|
<a href="#120" id="120">120</a>
|
||||||
|
<a href="#121" id="121">121</a>
|
||||||
|
<a href="#122" id="122">122</a>
|
||||||
|
<a href="#123" id="123">123</a>
|
||||||
|
<a href="#124" id="124">124</a>
|
||||||
|
<a href="#125" id="125">125</a>
|
||||||
|
<a href="#126" id="126">126</a>
|
||||||
|
<a href="#127" id="127">127</a>
|
||||||
|
<a href="#128" id="128">128</a>
|
||||||
|
<a href="#129" id="129">129</a>
|
||||||
|
<a href="#130" id="130">130</a>
|
||||||
|
<a href="#131" id="131">131</a>
|
||||||
|
<a href="#132" id="132">132</a>
|
||||||
|
<a href="#133" id="133">133</a>
|
||||||
|
<a href="#134" id="134">134</a>
|
||||||
|
<a href="#135" id="135">135</a>
|
||||||
|
<a href="#136" id="136">136</a>
|
||||||
|
<a href="#137" id="137">137</a>
|
||||||
|
<a href="#138" id="138">138</a>
|
||||||
|
<a href="#139" id="139">139</a>
|
||||||
|
<a href="#140" id="140">140</a>
|
||||||
|
<a href="#141" id="141">141</a>
|
||||||
|
<a href="#142" id="142">142</a>
|
||||||
|
<a href="#143" id="143">143</a>
|
||||||
|
<a href="#144" id="144">144</a>
|
||||||
|
<a href="#145" id="145">145</a>
|
||||||
|
<a href="#146" id="146">146</a>
|
||||||
|
<a href="#147" id="147">147</a>
|
||||||
|
<a href="#148" id="148">148</a>
|
||||||
|
<a href="#149" id="149">149</a>
|
||||||
|
<a href="#150" id="150">150</a>
|
||||||
|
<a href="#151" id="151">151</a>
|
||||||
|
<a href="#152" id="152">152</a>
|
||||||
|
<a href="#153" id="153">153</a>
|
||||||
|
<a href="#154" id="154">154</a>
|
||||||
|
<a href="#155" id="155">155</a>
|
||||||
|
<a href="#156" id="156">156</a>
|
||||||
|
<a href="#157" id="157">157</a>
|
||||||
|
<a href="#158" id="158">158</a>
|
||||||
|
<a href="#159" id="159">159</a>
|
||||||
|
<a href="#160" id="160">160</a>
|
||||||
|
<a href="#161" id="161">161</a>
|
||||||
|
<a href="#162" id="162">162</a>
|
||||||
|
<a href="#163" id="163">163</a>
|
||||||
|
<a href="#164" id="164">164</a>
|
||||||
|
<a href="#165" id="165">165</a>
|
||||||
|
<a href="#166" id="166">166</a>
|
||||||
|
<a href="#167" id="167">167</a>
|
||||||
|
<a href="#168" id="168">168</a>
|
||||||
|
<a href="#169" id="169">169</a>
|
||||||
|
<a href="#170" id="170">170</a>
|
||||||
|
<a href="#171" id="171">171</a>
|
||||||
|
<a href="#172" id="172">172</a>
|
||||||
|
<a href="#173" id="173">173</a>
|
||||||
|
<a href="#174" id="174">174</a>
|
||||||
|
<a href="#175" id="175">175</a>
|
||||||
|
<a href="#176" id="176">176</a>
|
||||||
|
<a href="#177" id="177">177</a>
|
||||||
|
<a href="#178" id="178">178</a>
|
||||||
|
<a href="#179" id="179">179</a>
|
||||||
|
<a href="#180" id="180">180</a>
|
||||||
|
<a href="#181" id="181">181</a>
|
||||||
|
<a href="#182" id="182">182</a>
|
||||||
|
<a href="#183" id="183">183</a>
|
||||||
|
<a href="#184" id="184">184</a>
|
||||||
|
<a href="#185" id="185">185</a>
|
||||||
|
<a href="#186" id="186">186</a>
|
||||||
|
<a href="#187" id="187">187</a>
|
||||||
|
<a href="#188" id="188">188</a>
|
||||||
|
<a href="#189" id="189">189</a>
|
||||||
|
<a href="#190" id="190">190</a>
|
||||||
|
<a href="#191" id="191">191</a>
|
||||||
|
<a href="#192" id="192">192</a>
|
||||||
|
<a href="#193" id="193">193</a>
|
||||||
|
<a href="#194" id="194">194</a>
|
||||||
|
<a href="#195" id="195">195</a>
|
||||||
|
<a href="#196" id="196">196</a>
|
||||||
|
<a href="#197" id="197">197</a>
|
||||||
|
<a href="#198" id="198">198</a>
|
||||||
|
<a href="#199" id="199">199</a>
|
||||||
|
<a href="#200" id="200">200</a>
|
||||||
|
<a href="#201" id="201">201</a>
|
||||||
|
<a href="#202" id="202">202</a>
|
||||||
|
<a href="#203" id="203">203</a>
|
||||||
|
<a href="#204" id="204">204</a>
|
||||||
|
<a href="#205" id="205">205</a>
|
||||||
|
<a href="#206" id="206">206</a>
|
||||||
|
<a href="#207" id="207">207</a>
|
||||||
|
<a href="#208" id="208">208</a>
|
||||||
|
<a href="#209" id="209">209</a>
|
||||||
|
<a href="#210" id="210">210</a>
|
||||||
|
<a href="#211" id="211">211</a>
|
||||||
|
<a href="#212" id="212">212</a>
|
||||||
|
<a href="#213" id="213">213</a>
|
||||||
|
<a href="#214" id="214">214</a>
|
||||||
|
<a href="#215" id="215">215</a>
|
||||||
|
<a href="#216" id="216">216</a>
|
||||||
|
<a href="#217" id="217">217</a>
|
||||||
|
<a href="#218" id="218">218</a>
|
||||||
|
<a href="#219" id="219">219</a>
|
||||||
|
<a href="#220" id="220">220</a>
|
||||||
|
<a href="#221" id="221">221</a>
|
||||||
|
<a href="#222" id="222">222</a>
|
||||||
|
<a href="#223" id="223">223</a>
|
||||||
|
<a href="#224" id="224">224</a>
|
||||||
|
<a href="#225" id="225">225</a>
|
||||||
|
<a href="#226" id="226">226</a>
|
||||||
|
<a href="#227" id="227">227</a>
|
||||||
|
<a href="#228" id="228">228</a>
|
||||||
|
<a href="#229" id="229">229</a>
|
||||||
|
<a href="#230" id="230">230</a>
|
||||||
|
<a href="#231" id="231">231</a>
|
||||||
|
<a href="#232" id="232">232</a>
|
||||||
|
<a href="#233" id="233">233</a>
|
||||||
|
<a href="#234" id="234">234</a>
|
||||||
|
<a href="#235" id="235">235</a>
|
||||||
|
<a href="#236" id="236">236</a>
|
||||||
|
<a href="#237" id="237">237</a>
|
||||||
|
<a href="#238" id="238">238</a>
|
||||||
|
<a href="#239" id="239">239</a>
|
||||||
|
<a href="#240" id="240">240</a>
|
||||||
|
<a href="#241" id="241">241</a>
|
||||||
|
<a href="#242" id="242">242</a>
|
||||||
|
<a href="#243" id="243">243</a>
|
||||||
|
<a href="#244" id="244">244</a>
|
||||||
|
<a href="#245" id="245">245</a>
|
||||||
|
<a href="#246" id="246">246</a>
|
||||||
|
<a href="#247" id="247">247</a>
|
||||||
|
<a href="#248" id="248">248</a>
|
||||||
|
<a href="#249" id="249">249</a>
|
||||||
|
<a href="#250" id="250">250</a>
|
||||||
|
<a href="#251" id="251">251</a>
|
||||||
|
<a href="#252" id="252">252</a>
|
||||||
|
<a href="#253" id="253">253</a>
|
||||||
|
<a href="#254" id="254">254</a>
|
||||||
|
<a href="#255" id="255">255</a>
|
||||||
|
<a href="#256" id="256">256</a>
|
||||||
|
<a href="#257" id="257">257</a>
|
||||||
|
<a href="#258" id="258">258</a>
|
||||||
|
<a href="#259" id="259">259</a>
|
||||||
|
<a href="#260" id="260">260</a>
|
||||||
|
<a href="#261" id="261">261</a>
|
||||||
|
<a href="#262" id="262">262</a>
|
||||||
|
<a href="#263" id="263">263</a>
|
||||||
|
<a href="#264" id="264">264</a>
|
||||||
|
<a href="#265" id="265">265</a>
|
||||||
|
<a href="#266" id="266">266</a>
|
||||||
|
<a href="#267" id="267">267</a>
|
||||||
|
<a href="#268" id="268">268</a>
|
||||||
|
<a href="#269" id="269">269</a>
|
||||||
|
<a href="#270" id="270">270</a>
|
||||||
|
<a href="#271" id="271">271</a>
|
||||||
|
<a href="#272" id="272">272</a>
|
||||||
|
<a href="#273" id="273">273</a>
|
||||||
|
<a href="#274" id="274">274</a>
|
||||||
|
<a href="#275" id="275">275</a>
|
||||||
|
<a href="#276" id="276">276</a>
|
||||||
|
<a href="#277" id="277">277</a>
|
||||||
|
<a href="#278" id="278">278</a>
|
||||||
|
<a href="#279" id="279">279</a>
|
||||||
|
<a href="#280" id="280">280</a>
|
||||||
|
<a href="#281" id="281">281</a>
|
||||||
|
<a href="#282" id="282">282</a>
|
||||||
|
<a href="#283" id="283">283</a>
|
||||||
|
<a href="#284" id="284">284</a>
|
||||||
|
<a href="#285" id="285">285</a>
|
||||||
|
<a href="#286" id="286">286</a>
|
||||||
|
<a href="#287" id="287">287</a>
|
||||||
|
<a href="#288" id="288">288</a>
|
||||||
|
<a href="#289" id="289">289</a>
|
||||||
|
<a href="#290" id="290">290</a>
|
||||||
|
<a href="#291" id="291">291</a>
|
||||||
|
<a href="#292" id="292">292</a>
|
||||||
|
<a href="#293" id="293">293</a>
|
||||||
|
<a href="#294" id="294">294</a>
|
||||||
|
<a href="#295" id="295">295</a>
|
||||||
|
<a href="#296" id="296">296</a>
|
||||||
|
<a href="#297" id="297">297</a>
|
||||||
|
<a href="#298" id="298">298</a>
|
||||||
|
<a href="#299" id="299">299</a>
|
||||||
|
<a href="#300" id="300">300</a>
|
||||||
|
<a href="#301" id="301">301</a>
|
||||||
|
<a href="#302" id="302">302</a>
|
||||||
|
<a href="#303" id="303">303</a>
|
||||||
|
<a href="#304" id="304">304</a>
|
||||||
|
<a href="#305" id="305">305</a>
|
||||||
|
<a href="#306" id="306">306</a>
|
||||||
|
<a href="#307" id="307">307</a>
|
||||||
|
<a href="#308" id="308">308</a>
|
||||||
|
<a href="#309" id="309">309</a>
|
||||||
|
<a href="#310" id="310">310</a>
|
||||||
|
<a href="#311" id="311">311</a>
|
||||||
|
<a href="#312" id="312">312</a>
|
||||||
|
<a href="#313" id="313">313</a>
|
||||||
|
<a href="#314" id="314">314</a>
|
||||||
|
<a href="#315" id="315">315</a>
|
||||||
|
<a href="#316" id="316">316</a>
|
||||||
|
<a href="#317" id="317">317</a>
|
||||||
|
<a href="#318" id="318">318</a>
|
||||||
|
<a href="#319" id="319">319</a>
|
||||||
|
<a href="#320" id="320">320</a>
|
||||||
|
<a href="#321" id="321">321</a>
|
||||||
|
<a href="#322" id="322">322</a>
|
||||||
|
<a href="#323" id="323">323</a>
|
||||||
|
<a href="#324" id="324">324</a>
|
||||||
|
<a href="#325" id="325">325</a>
|
||||||
|
<a href="#326" id="326">326</a>
|
||||||
|
<a href="#327" id="327">327</a>
|
||||||
|
<a href="#328" id="328">328</a>
|
||||||
|
<a href="#329" id="329">329</a>
|
||||||
|
<a href="#330" id="330">330</a>
|
||||||
|
<a href="#331" id="331">331</a>
|
||||||
|
<a href="#332" id="332">332</a>
|
||||||
|
<a href="#333" id="333">333</a>
|
||||||
|
<a href="#334" id="334">334</a>
|
||||||
|
<a href="#335" id="335">335</a>
|
||||||
|
<a href="#336" id="336">336</a>
|
||||||
|
<a href="#337" id="337">337</a>
|
||||||
|
<a href="#338" id="338">338</a>
|
||||||
|
<a href="#339" id="339">339</a>
|
||||||
|
<a href="#340" id="340">340</a>
|
||||||
|
<a href="#341" id="341">341</a>
|
||||||
|
<a href="#342" id="342">342</a>
|
||||||
|
<a href="#343" id="343">343</a>
|
||||||
|
<a href="#344" id="344">344</a>
|
||||||
|
<a href="#345" id="345">345</a>
|
||||||
|
<a href="#346" id="346">346</a>
|
||||||
|
<a href="#347" id="347">347</a>
|
||||||
|
<a href="#348" id="348">348</a>
|
||||||
|
<a href="#349" id="349">349</a>
|
||||||
|
<a href="#350" id="350">350</a>
|
||||||
|
<a href="#351" id="351">351</a>
|
||||||
|
<a href="#352" id="352">352</a>
|
||||||
|
<a href="#353" id="353">353</a>
|
||||||
|
<a href="#354" id="354">354</a>
|
||||||
|
<a href="#355" id="355">355</a>
|
||||||
|
<a href="#356" id="356">356</a>
|
||||||
|
<a href="#357" id="357">357</a></pre></div><pre class="rust"><code><span class="doccomment">//! MRC
|
||||||
|
//! A library for interacting with the MPV media player using its JSON IPC (Inter-Process Communication) protocol.
|
||||||
|
//!
|
||||||
|
//! This crate provides a set of utilities to communicate with MPV's IPC socket, enabling you to send commands
|
||||||
|
//! and retrieve responses in a structured format.
|
||||||
|
//!
|
||||||
|
//! ## Features
|
||||||
|
//!
|
||||||
|
//! - Send commands to MPV's IPC socket
|
||||||
|
//! - Retrieve responses in JSON format
|
||||||
|
//! - Supports common MPV commands like `set_property`, `seek`, and `playlist-next`
|
||||||
|
//! - Flexible socket path configuration
|
||||||
|
//!
|
||||||
|
//! ## Example Usage
|
||||||
|
//! ```rust
|
||||||
|
//! use serde_json::json;
|
||||||
|
//! use tokio;
|
||||||
|
//! use mrc::{send_ipc_command, playlist_next, set_property};
|
||||||
|
//!
|
||||||
|
//! #[tokio::main]
|
||||||
|
//! async fn main() {
|
||||||
|
//! let result = playlist_next(None).await;
|
||||||
|
//! match result {
|
||||||
|
//! Ok(response) => println!("Playlist moved to next: {:?}", response),
|
||||||
|
//! Err(err) => eprintln!("Error: {:?}", err),
|
||||||
|
//! }
|
||||||
|
//!
|
||||||
|
//! let property_result = set_property("volume", &json!(50), None).await;
|
||||||
|
//! match property_result {
|
||||||
|
//! Ok(response) => println!("Volume set: {:?}", response),
|
||||||
|
//! Err(err) => eprintln!("Error: {:?}", err),
|
||||||
|
//! }
|
||||||
|
//! }
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
|
//! ## Constants
|
||||||
|
//!
|
||||||
|
//! ### `SOCKET_PATH`
|
||||||
|
//! Default path for the MPV IPC socket: `/tmp/mpvsocket`
|
||||||
|
//!
|
||||||
|
//! ## Functions
|
||||||
|
|
||||||
|
</span><span class="kw">use </span>serde_json::{json, Value};
|
||||||
|
<span class="kw">use </span>std::io::{<span class="self">self</span>};
|
||||||
|
<span class="kw">use </span>tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||||
|
<span class="kw">use </span>tokio::net::UnixStream;
|
||||||
|
<span class="kw">use </span>tracing::{debug, error};
|
||||||
|
|
||||||
|
<span class="kw">pub const </span>SOCKET_PATH: <span class="kw-2">&</span>str = <span class="string">"/tmp/mpvsocket"</span>;
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends a generic IPC command to the specified socket and returns the parsed response data.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `command`: The name of the command to send to MPV.
|
||||||
|
/// - `args`: A slice of `Value` arguments to include in the command.
|
||||||
|
/// - `socket_path`: An optional custom path to the MPV IPC socket. If `None`, the default path is used.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing an `Option<Value>` with the parsed response data if successful.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or if the response cannot be parsed.
|
||||||
|
</span><span class="kw">pub async fn </span>send_ipc_command(
|
||||||
|
command: <span class="kw-2">&</span>str,
|
||||||
|
args: <span class="kw-2">&</span>[Value],
|
||||||
|
socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>,
|
||||||
|
) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
<span class="kw">let </span>socket_path = socket_path.unwrap_or(SOCKET_PATH);
|
||||||
|
<span class="macro">debug!</span>(
|
||||||
|
<span class="string">"Sending IPC command: {} with arguments: {:?}"</span>,
|
||||||
|
command, args
|
||||||
|
);
|
||||||
|
|
||||||
|
<span class="kw">match </span>UnixStream::connect(socket_path).<span class="kw">await </span>{
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="kw-2">mut </span>socket) => {
|
||||||
|
<span class="macro">debug!</span>(<span class="string">"Connected to socket at {}"</span>, socket_path);
|
||||||
|
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>command_array = <span class="macro">vec!</span>[<span class="macro">json!</span>(command)];
|
||||||
|
command_array.extend_from_slice(args);
|
||||||
|
<span class="kw">let </span>message = <span class="macro">json!</span>({ <span class="string">"command"</span>: command_array });
|
||||||
|
<span class="kw">let </span>message_str = <span class="macro">format!</span>(<span class="string">"{}\n"</span>, serde_json::to_string(<span class="kw-2">&</span>message)<span class="question-mark">?</span>);
|
||||||
|
<span class="macro">debug!</span>(<span class="string">"Serialized message to send with newline: {}"</span>, message_str);
|
||||||
|
|
||||||
|
socket.write_all(message_str.as_bytes()).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
socket.flush().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="macro">debug!</span>(<span class="string">"Message sent and flushed"</span>);
|
||||||
|
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>response = <span class="macro">vec!</span>[<span class="number">0</span>; <span class="number">1024</span>];
|
||||||
|
<span class="kw">let </span>n = socket.read(<span class="kw-2">&mut </span>response).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span>response_str = String::from_utf8_lossy(<span class="kw-2">&</span>response[..n]);
|
||||||
|
<span class="macro">debug!</span>(<span class="string">"Raw response: {}"</span>, response_str);
|
||||||
|
|
||||||
|
<span class="kw">match </span>serde_json::from_str::<Value>(<span class="kw-2">&</span>response_str) {
|
||||||
|
<span class="prelude-val">Ok</span>(json_response) => {
|
||||||
|
<span class="macro">debug!</span>(<span class="string">"Parsed IPC response: {:?}"</span>, json_response);
|
||||||
|
<span class="prelude-val">Ok</span>(json_response.get(<span class="string">"data"</span>).cloned())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="prelude-val">Err</span>(e) => {
|
||||||
|
<span class="macro">error!</span>(<span class="string">"Failed to parse response: {}"</span>, e);
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="prelude-val">None</span>)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="prelude-val">Err</span>(e) => {
|
||||||
|
<span class="macro">error!</span>(<span class="string">"Failed to connect to MPV socket: {}"</span>, e);
|
||||||
|
<span class="prelude-val">Err</span>(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Represents common MPV commands.
|
||||||
|
///
|
||||||
|
/// This enum provides variants for frequently used MPV commands, which can be converted to their
|
||||||
|
/// string equivalents using the `as_str` method.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="attr">#[derive(Debug)]
|
||||||
|
</span><span class="kw">pub enum </span>MpvCommand {
|
||||||
|
<span class="doccomment">/// Sets a property to a specified value in MPV.
|
||||||
|
</span>SetProperty,
|
||||||
|
<span class="doccomment">/// Moves to the next item in the playlist.
|
||||||
|
</span>PlaylistNext,
|
||||||
|
<span class="doccomment">/// Moves to the previous item in the playlist.
|
||||||
|
</span>PlaylistPrev,
|
||||||
|
<span class="doccomment">/// Seeks to a specific time in the current media.
|
||||||
|
</span>Seek,
|
||||||
|
<span class="doccomment">/// Quits the MPV application.
|
||||||
|
</span>Quit,
|
||||||
|
<span class="doccomment">/// Moves an item in the playlist from one index to another.
|
||||||
|
</span>PlaylistMove,
|
||||||
|
<span class="doccomment">/// Removes an item from the playlist.
|
||||||
|
</span>PlaylistRemove,
|
||||||
|
<span class="doccomment">/// Clears all items from the playlist.
|
||||||
|
</span>PlaylistClear,
|
||||||
|
<span class="doccomment">/// Retrieves the value of a property in MPV.
|
||||||
|
</span>GetProperty,
|
||||||
|
<span class="doccomment">/// Loads a file into MPV.
|
||||||
|
</span>LoadFile,
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">impl </span>MpvCommand {
|
||||||
|
<span class="doccomment">/// Converts MPV commands to their string equivalents.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A string slice representing the command.
|
||||||
|
</span><span class="attr">#[must_use]
|
||||||
|
</span><span class="kw">pub const fn </span>as_str(<span class="kw-2">&</span><span class="self">self</span>) -> <span class="kw-2">&</span>str {
|
||||||
|
<span class="kw">match </span><span class="self">self </span>{
|
||||||
|
<span class="self">Self</span>::SetProperty => <span class="string">"set_property"</span>,
|
||||||
|
<span class="self">Self</span>::PlaylistNext => <span class="string">"playlist-next"</span>,
|
||||||
|
<span class="self">Self</span>::PlaylistPrev => <span class="string">"playlist-prev"</span>,
|
||||||
|
<span class="self">Self</span>::Seek => <span class="string">"seek"</span>,
|
||||||
|
<span class="self">Self</span>::Quit => <span class="string">"quit"</span>,
|
||||||
|
<span class="self">Self</span>::PlaylistMove => <span class="string">"playlist-move"</span>,
|
||||||
|
<span class="self">Self</span>::PlaylistRemove => <span class="string">"playlist-remove"</span>,
|
||||||
|
<span class="self">Self</span>::PlaylistClear => <span class="string">"playlist-clear"</span>,
|
||||||
|
<span class="self">Self</span>::GetProperty => <span class="string">"get_property"</span>,
|
||||||
|
<span class="self">Self</span>::LoadFile => <span class="string">"loadfile"</span>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `set_property` command to MPV to change a property value.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `property`: The name of the property to set.
|
||||||
|
/// - `value`: The new value to assign to the property.
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>set_property(
|
||||||
|
property: <span class="kw-2">&</span>str,
|
||||||
|
value: <span class="kw-2">&</span>Value,
|
||||||
|
socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>,
|
||||||
|
) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(
|
||||||
|
MpvCommand::SetProperty.as_str(),
|
||||||
|
<span class="kw-2">&</span>[<span class="macro">json!</span>(property), value.clone()],
|
||||||
|
socket_path,
|
||||||
|
)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `playlist-next` command to move to the next playlist item.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>playlist_next(socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(MpvCommand::PlaylistNext.as_str(), <span class="kw-2">&</span>[], socket_path).<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `playlist-prev` command to move to the previous playlist item.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>playlist_prev(socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(MpvCommand::PlaylistPrev.as_str(), <span class="kw-2">&</span>[], socket_path).<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `seek` command to seek the media playback by a given number of seconds.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `seconds`: The number of seconds to seek.
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>seek(seconds: f64, socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(MpvCommand::Seek.as_str(), <span class="kw-2">&</span>[<span class="macro">json!</span>(seconds)], socket_path).<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `quit` command to terminate MPV.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>quit(socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(MpvCommand::Quit.as_str(), <span class="kw-2">&</span>[], socket_path).<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `playlist-move` command to move a playlist item from one index to another.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `from_index`: The index of the item to move.
|
||||||
|
/// - `to_index`: The index to move the item to.
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>playlist_move(
|
||||||
|
from_index: usize,
|
||||||
|
to_index: usize,
|
||||||
|
socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>,
|
||||||
|
) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(
|
||||||
|
MpvCommand::PlaylistMove.as_str(),
|
||||||
|
<span class="kw-2">&</span>[<span class="macro">json!</span>(from_index), <span class="macro">json!</span>(to_index)],
|
||||||
|
socket_path,
|
||||||
|
)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `playlist-remove` command to remove an item from the playlist.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `index`: The index of the item to remove, or `None` to remove the current item.
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>playlist_remove(
|
||||||
|
index: <span class="prelude-ty">Option</span><usize>,
|
||||||
|
socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>,
|
||||||
|
) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
<span class="kw">let </span>args = <span class="kw">match </span>index {
|
||||||
|
<span class="prelude-val">Some</span>(idx) => <span class="macro">vec!</span>[<span class="macro">json!</span>(idx)],
|
||||||
|
<span class="prelude-val">None </span>=> <span class="macro">vec!</span>[<span class="macro">json!</span>(<span class="string">"current"</span>)],
|
||||||
|
};
|
||||||
|
send_ipc_command(MpvCommand::PlaylistRemove.as_str(), <span class="kw-2">&</span>args, socket_path).<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `playlist-clear` command to clear the playlist.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>playlist_clear(socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(MpvCommand::PlaylistClear.as_str(), <span class="kw-2">&</span>[], socket_path).<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `get_property` command to retrieve a property value from MPV.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `property`: The name of the property to retrieve.
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>get_property(property: <span class="kw-2">&</span>str, socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
send_ipc_command(
|
||||||
|
MpvCommand::GetProperty.as_str(),
|
||||||
|
<span class="kw-2">&</span>[<span class="macro">json!</span>(property)],
|
||||||
|
socket_path,
|
||||||
|
)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
|
||||||
|
<span class="doccomment">/// Sends the `loadfile` command to load a file into MPV.
|
||||||
|
///
|
||||||
|
/// # Arguments
|
||||||
|
/// - `filename`: The name of the file to load.
|
||||||
|
/// - `append`: Whether to append the file to the playlist (`true`) or replace the current file (`false`).
|
||||||
|
/// - `socket_path`: An optional custom socket path.
|
||||||
|
///
|
||||||
|
/// # Returns
|
||||||
|
/// A `Result` containing the response data.
|
||||||
|
///
|
||||||
|
/// # Errors
|
||||||
|
/// Returns an error if the connection to the socket fails or the command execution encounters issues.
|
||||||
|
</span><span class="kw">pub async fn </span>loadfile(
|
||||||
|
filename: <span class="kw-2">&</span>str,
|
||||||
|
append: bool,
|
||||||
|
socket_path: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>str>,
|
||||||
|
) -> io::Result<<span class="prelude-ty">Option</span><Value>> {
|
||||||
|
<span class="kw">let </span>append_flag = <span class="kw">if </span>append {
|
||||||
|
<span class="macro">json!</span>(<span class="string">"append-play"</span>)
|
||||||
|
} <span class="kw">else </span>{
|
||||||
|
<span class="macro">json!</span>(<span class="string">"replace"</span>)
|
||||||
|
};
|
||||||
|
send_ipc_command(
|
||||||
|
MpvCommand::LoadFile.as_str(),
|
||||||
|
<span class="kw-2">&</span>[<span class="macro">json!</span>(filename), append_flag],
|
||||||
|
socket_path,
|
||||||
|
)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>}
|
||||||
|
</code></pre></div></section></main></body></html>
|
||||||
423
src/server/server.rs.html
Normal file
423
src/server/server.rs.html
Normal file
|
|
@ -0,0 +1,423 @@
|
||||||
|
<!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="Source of the Rust file `src/server.rs`."><title>server.rs - source</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="server" 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="../../static.files/src-script-56102188.js"></script><script defer src="../../src-files.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 src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title"><h2>Files</h2></div></nav><div class="sidebar-resizer"></div><main><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1><div class="sub-heading">server/</div>server.rs</h1><rustdoc-toolbar></rustdoc-toolbar></div><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers">
|
||||||
|
<a href="#1" id="1">1</a>
|
||||||
|
<a href="#2" id="2">2</a>
|
||||||
|
<a href="#3" id="3">3</a>
|
||||||
|
<a href="#4" id="4">4</a>
|
||||||
|
<a href="#5" id="5">5</a>
|
||||||
|
<a href="#6" id="6">6</a>
|
||||||
|
<a href="#7" id="7">7</a>
|
||||||
|
<a href="#8" id="8">8</a>
|
||||||
|
<a href="#9" id="9">9</a>
|
||||||
|
<a href="#10" id="10">10</a>
|
||||||
|
<a href="#11" id="11">11</a>
|
||||||
|
<a href="#12" id="12">12</a>
|
||||||
|
<a href="#13" id="13">13</a>
|
||||||
|
<a href="#14" id="14">14</a>
|
||||||
|
<a href="#15" id="15">15</a>
|
||||||
|
<a href="#16" id="16">16</a>
|
||||||
|
<a href="#17" id="17">17</a>
|
||||||
|
<a href="#18" id="18">18</a>
|
||||||
|
<a href="#19" id="19">19</a>
|
||||||
|
<a href="#20" id="20">20</a>
|
||||||
|
<a href="#21" id="21">21</a>
|
||||||
|
<a href="#22" id="22">22</a>
|
||||||
|
<a href="#23" id="23">23</a>
|
||||||
|
<a href="#24" id="24">24</a>
|
||||||
|
<a href="#25" id="25">25</a>
|
||||||
|
<a href="#26" id="26">26</a>
|
||||||
|
<a href="#27" id="27">27</a>
|
||||||
|
<a href="#28" id="28">28</a>
|
||||||
|
<a href="#29" id="29">29</a>
|
||||||
|
<a href="#30" id="30">30</a>
|
||||||
|
<a href="#31" id="31">31</a>
|
||||||
|
<a href="#32" id="32">32</a>
|
||||||
|
<a href="#33" id="33">33</a>
|
||||||
|
<a href="#34" id="34">34</a>
|
||||||
|
<a href="#35" id="35">35</a>
|
||||||
|
<a href="#36" id="36">36</a>
|
||||||
|
<a href="#37" id="37">37</a>
|
||||||
|
<a href="#38" id="38">38</a>
|
||||||
|
<a href="#39" id="39">39</a>
|
||||||
|
<a href="#40" id="40">40</a>
|
||||||
|
<a href="#41" id="41">41</a>
|
||||||
|
<a href="#42" id="42">42</a>
|
||||||
|
<a href="#43" id="43">43</a>
|
||||||
|
<a href="#44" id="44">44</a>
|
||||||
|
<a href="#45" id="45">45</a>
|
||||||
|
<a href="#46" id="46">46</a>
|
||||||
|
<a href="#47" id="47">47</a>
|
||||||
|
<a href="#48" id="48">48</a>
|
||||||
|
<a href="#49" id="49">49</a>
|
||||||
|
<a href="#50" id="50">50</a>
|
||||||
|
<a href="#51" id="51">51</a>
|
||||||
|
<a href="#52" id="52">52</a>
|
||||||
|
<a href="#53" id="53">53</a>
|
||||||
|
<a href="#54" id="54">54</a>
|
||||||
|
<a href="#55" id="55">55</a>
|
||||||
|
<a href="#56" id="56">56</a>
|
||||||
|
<a href="#57" id="57">57</a>
|
||||||
|
<a href="#58" id="58">58</a>
|
||||||
|
<a href="#59" id="59">59</a>
|
||||||
|
<a href="#60" id="60">60</a>
|
||||||
|
<a href="#61" id="61">61</a>
|
||||||
|
<a href="#62" id="62">62</a>
|
||||||
|
<a href="#63" id="63">63</a>
|
||||||
|
<a href="#64" id="64">64</a>
|
||||||
|
<a href="#65" id="65">65</a>
|
||||||
|
<a href="#66" id="66">66</a>
|
||||||
|
<a href="#67" id="67">67</a>
|
||||||
|
<a href="#68" id="68">68</a>
|
||||||
|
<a href="#69" id="69">69</a>
|
||||||
|
<a href="#70" id="70">70</a>
|
||||||
|
<a href="#71" id="71">71</a>
|
||||||
|
<a href="#72" id="72">72</a>
|
||||||
|
<a href="#73" id="73">73</a>
|
||||||
|
<a href="#74" id="74">74</a>
|
||||||
|
<a href="#75" id="75">75</a>
|
||||||
|
<a href="#76" id="76">76</a>
|
||||||
|
<a href="#77" id="77">77</a>
|
||||||
|
<a href="#78" id="78">78</a>
|
||||||
|
<a href="#79" id="79">79</a>
|
||||||
|
<a href="#80" id="80">80</a>
|
||||||
|
<a href="#81" id="81">81</a>
|
||||||
|
<a href="#82" id="82">82</a>
|
||||||
|
<a href="#83" id="83">83</a>
|
||||||
|
<a href="#84" id="84">84</a>
|
||||||
|
<a href="#85" id="85">85</a>
|
||||||
|
<a href="#86" id="86">86</a>
|
||||||
|
<a href="#87" id="87">87</a>
|
||||||
|
<a href="#88" id="88">88</a>
|
||||||
|
<a href="#89" id="89">89</a>
|
||||||
|
<a href="#90" id="90">90</a>
|
||||||
|
<a href="#91" id="91">91</a>
|
||||||
|
<a href="#92" id="92">92</a>
|
||||||
|
<a href="#93" id="93">93</a>
|
||||||
|
<a href="#94" id="94">94</a>
|
||||||
|
<a href="#95" id="95">95</a>
|
||||||
|
<a href="#96" id="96">96</a>
|
||||||
|
<a href="#97" id="97">97</a>
|
||||||
|
<a href="#98" id="98">98</a>
|
||||||
|
<a href="#99" id="99">99</a>
|
||||||
|
<a href="#100" id="100">100</a>
|
||||||
|
<a href="#101" id="101">101</a>
|
||||||
|
<a href="#102" id="102">102</a>
|
||||||
|
<a href="#103" id="103">103</a>
|
||||||
|
<a href="#104" id="104">104</a>
|
||||||
|
<a href="#105" id="105">105</a>
|
||||||
|
<a href="#106" id="106">106</a>
|
||||||
|
<a href="#107" id="107">107</a>
|
||||||
|
<a href="#108" id="108">108</a>
|
||||||
|
<a href="#109" id="109">109</a>
|
||||||
|
<a href="#110" id="110">110</a>
|
||||||
|
<a href="#111" id="111">111</a>
|
||||||
|
<a href="#112" id="112">112</a>
|
||||||
|
<a href="#113" id="113">113</a>
|
||||||
|
<a href="#114" id="114">114</a>
|
||||||
|
<a href="#115" id="115">115</a>
|
||||||
|
<a href="#116" id="116">116</a>
|
||||||
|
<a href="#117" id="117">117</a>
|
||||||
|
<a href="#118" id="118">118</a>
|
||||||
|
<a href="#119" id="119">119</a>
|
||||||
|
<a href="#120" id="120">120</a>
|
||||||
|
<a href="#121" id="121">121</a>
|
||||||
|
<a href="#122" id="122">122</a>
|
||||||
|
<a href="#123" id="123">123</a>
|
||||||
|
<a href="#124" id="124">124</a>
|
||||||
|
<a href="#125" id="125">125</a>
|
||||||
|
<a href="#126" id="126">126</a>
|
||||||
|
<a href="#127" id="127">127</a>
|
||||||
|
<a href="#128" id="128">128</a>
|
||||||
|
<a href="#129" id="129">129</a>
|
||||||
|
<a href="#130" id="130">130</a>
|
||||||
|
<a href="#131" id="131">131</a>
|
||||||
|
<a href="#132" id="132">132</a>
|
||||||
|
<a href="#133" id="133">133</a>
|
||||||
|
<a href="#134" id="134">134</a>
|
||||||
|
<a href="#135" id="135">135</a>
|
||||||
|
<a href="#136" id="136">136</a>
|
||||||
|
<a href="#137" id="137">137</a>
|
||||||
|
<a href="#138" id="138">138</a>
|
||||||
|
<a href="#139" id="139">139</a>
|
||||||
|
<a href="#140" id="140">140</a>
|
||||||
|
<a href="#141" id="141">141</a>
|
||||||
|
<a href="#142" id="142">142</a>
|
||||||
|
<a href="#143" id="143">143</a>
|
||||||
|
<a href="#144" id="144">144</a>
|
||||||
|
<a href="#145" id="145">145</a>
|
||||||
|
<a href="#146" id="146">146</a>
|
||||||
|
<a href="#147" id="147">147</a>
|
||||||
|
<a href="#148" id="148">148</a>
|
||||||
|
<a href="#149" id="149">149</a>
|
||||||
|
<a href="#150" id="150">150</a>
|
||||||
|
<a href="#151" id="151">151</a>
|
||||||
|
<a href="#152" id="152">152</a>
|
||||||
|
<a href="#153" id="153">153</a>
|
||||||
|
<a href="#154" id="154">154</a>
|
||||||
|
<a href="#155" id="155">155</a>
|
||||||
|
<a href="#156" id="156">156</a>
|
||||||
|
<a href="#157" id="157">157</a>
|
||||||
|
<a href="#158" id="158">158</a>
|
||||||
|
<a href="#159" id="159">159</a>
|
||||||
|
<a href="#160" id="160">160</a>
|
||||||
|
<a href="#161" id="161">161</a>
|
||||||
|
<a href="#162" id="162">162</a>
|
||||||
|
<a href="#163" id="163">163</a>
|
||||||
|
<a href="#164" id="164">164</a>
|
||||||
|
<a href="#165" id="165">165</a>
|
||||||
|
<a href="#166" id="166">166</a>
|
||||||
|
<a href="#167" id="167">167</a>
|
||||||
|
<a href="#168" id="168">168</a>
|
||||||
|
<a href="#169" id="169">169</a>
|
||||||
|
<a href="#170" id="170">170</a>
|
||||||
|
<a href="#171" id="171">171</a>
|
||||||
|
<a href="#172" id="172">172</a>
|
||||||
|
<a href="#173" id="173">173</a>
|
||||||
|
<a href="#174" id="174">174</a>
|
||||||
|
<a href="#175" id="175">175</a>
|
||||||
|
<a href="#176" id="176">176</a>
|
||||||
|
<a href="#177" id="177">177</a>
|
||||||
|
<a href="#178" id="178">178</a>
|
||||||
|
<a href="#179" id="179">179</a>
|
||||||
|
<a href="#180" id="180">180</a>
|
||||||
|
<a href="#181" id="181">181</a>
|
||||||
|
<a href="#182" id="182">182</a>
|
||||||
|
<a href="#183" id="183">183</a>
|
||||||
|
<a href="#184" id="184">184</a>
|
||||||
|
<a href="#185" id="185">185</a>
|
||||||
|
<a href="#186" id="186">186</a>
|
||||||
|
<a href="#187" id="187">187</a>
|
||||||
|
<a href="#188" id="188">188</a>
|
||||||
|
<a href="#189" id="189">189</a>
|
||||||
|
<a href="#190" id="190">190</a>
|
||||||
|
<a href="#191" id="191">191</a>
|
||||||
|
<a href="#192" id="192">192</a>
|
||||||
|
<a href="#193" id="193">193</a>
|
||||||
|
<a href="#194" id="194">194</a>
|
||||||
|
<a href="#195" id="195">195</a>
|
||||||
|
<a href="#196" id="196">196</a>
|
||||||
|
<a href="#197" id="197">197</a>
|
||||||
|
<a href="#198" id="198">198</a>
|
||||||
|
<a href="#199" id="199">199</a>
|
||||||
|
<a href="#200" id="200">200</a>
|
||||||
|
<a href="#201" id="201">201</a>
|
||||||
|
<a href="#202" id="202">202</a>
|
||||||
|
<a href="#203" id="203">203</a>
|
||||||
|
<a href="#204" id="204">204</a>
|
||||||
|
<a href="#205" id="205">205</a>
|
||||||
|
<a href="#206" id="206">206</a>
|
||||||
|
<a href="#207" id="207">207</a>
|
||||||
|
<a href="#208" id="208">208</a>
|
||||||
|
<a href="#209" id="209">209</a>
|
||||||
|
<a href="#210" id="210">210</a>
|
||||||
|
<a href="#211" id="211">211</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::env;
|
||||||
|
<span class="kw">use </span>std::io::Read;
|
||||||
|
<span class="kw">use </span>std::sync::Arc;
|
||||||
|
|
||||||
|
<span class="kw">use </span>clap::Parser;
|
||||||
|
<span class="kw">use </span>native_tls::{Identity, TlsAcceptor <span class="kw">as </span>NativeTlsAcceptor};
|
||||||
|
<span class="kw">use </span>serde_json::json;
|
||||||
|
<span class="kw">use </span>tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||||
|
<span class="kw">use </span>tokio_native_tls::TlsAcceptor;
|
||||||
|
<span class="kw">use </span>tracing::{debug, error, info};
|
||||||
|
|
||||||
|
<span class="kw">use </span>mrc::{get_property, playlist_clear, playlist_next, playlist_prev, quit, seek, set_property};
|
||||||
|
|
||||||
|
<span class="attr">#[derive(Parser)]
|
||||||
|
#[command(author, version, about)]
|
||||||
|
</span><span class="kw">struct </span>Config {
|
||||||
|
<span class="doccomment">/// The IP address and port to bind the server to
|
||||||
|
</span><span class="attr">#[arg(short, long, default_value = <span class="string">"127.0.0.1:8080"</span>)]
|
||||||
|
</span>bind: String,
|
||||||
|
|
||||||
|
<span class="doccomment">/// Path to MPV IPC socket
|
||||||
|
</span><span class="attr">#[arg(short, long, default_value = <span class="string">"/tmp/mpvsocket"</span>)]
|
||||||
|
</span>socket: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">async fn </span>handle_connection(
|
||||||
|
stream: tokio::net::TcpStream,
|
||||||
|
acceptor: Arc<TlsAcceptor>,
|
||||||
|
) -> <span class="prelude-ty">Result</span><(), Box<<span class="kw">dyn </span>std::error::Error + Send + Sync>> {
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>stream = acceptor.accept(stream).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>buffer = <span class="macro">vec!</span>[<span class="number">0</span>; <span class="number">2048</span>];
|
||||||
|
|
||||||
|
<span class="kw">let </span>n = stream.read(<span class="kw-2">&mut </span>buffer).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span>request = String::from_utf8_lossy(<span class="kw-2">&</span>buffer[..n]);
|
||||||
|
|
||||||
|
<span class="macro">debug!</span>(<span class="string">"Received request:\n{}"</span>, request);
|
||||||
|
|
||||||
|
<span class="kw">let </span>headers = request.split(<span class="string">"\r\n"</span>).collect::<Vec<<span class="kw-2">&</span>str>>();
|
||||||
|
<span class="kw">let </span>token_line = headers
|
||||||
|
.iter()
|
||||||
|
.find(|&&line| line.starts_with(<span class="string">"Authorization:"</span>));
|
||||||
|
<span class="kw">let </span>token = <span class="kw">match </span>token_line {
|
||||||
|
<span class="prelude-val">Some</span>(line) => line.split(<span class="string">" "</span>).nth(<span class="number">1</span>).unwrap_or_default(),
|
||||||
|
<span class="prelude-val">None </span>=> <span class="string">""</span>,
|
||||||
|
};
|
||||||
|
|
||||||
|
<span class="kw">let </span>auth_token = <span class="kw">match </span>env::var(<span class="string">"AUTH_TOKEN"</span>) {
|
||||||
|
<span class="prelude-val">Ok</span>(token) => token,
|
||||||
|
<span class="prelude-val">Err</span>(<span class="kw">_</span>) => {
|
||||||
|
<span class="macro">error!</span>(<span class="string">"Authentication token is not set. Connection cannot be accepted."</span>);
|
||||||
|
stream.write_all(<span class="string">b"Authentication token not set\n"</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
|
||||||
|
<span class="comment">// You know what? I do not care to panic when the authentication token is
|
||||||
|
// missing in the environment. Start the goddamned server and hell, even
|
||||||
|
// accept incoming connections. Authenticated requests will be refused
|
||||||
|
// when the token is incorrect or not set, so we can simply continue here.
|
||||||
|
</span><span class="kw">return </span><span class="prelude-val">Ok</span>(());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
<span class="kw">if </span>token != auth_token {
|
||||||
|
stream.write_all(<span class="string">b"Authentication failed\n"</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="kw">return </span><span class="prelude-val">Ok</span>(());
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Client authenticated"</span>);
|
||||||
|
stream.write_all(<span class="string">b"Authenticated\n"</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
|
||||||
|
<span class="kw">let </span>command = request.split(<span class="string">"\r\n\r\n"</span>).last().unwrap_or(<span class="string">""</span>);
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Received command: {}"</span>, command);
|
||||||
|
|
||||||
|
<span class="kw">let </span>response = <span class="kw">match </span>process_command(command.trim()).<span class="kw">await </span>{
|
||||||
|
<span class="prelude-val">Ok</span>(response) => response,
|
||||||
|
<span class="prelude-val">Err</span>(e) => {
|
||||||
|
<span class="macro">error!</span>(<span class="string">"Error processing command: {}"</span>, e);
|
||||||
|
<span class="macro">format!</span>(<span class="string">"Error: {:?}"</span>, e)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
stream.write_all(response.as_bytes()).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">async fn </span>process_command(command: <span class="kw-2">&</span>str) -> <span class="prelude-ty">Result</span><String, String> {
|
||||||
|
<span class="kw">match </span>command {
|
||||||
|
<span class="string">"pause" </span>=> {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Pausing playback"</span>);
|
||||||
|
set_property(<span class="string">"pause"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="bool-val">true</span>), <span class="prelude-val">None</span>)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>.map_err(|e| <span class="macro">format!</span>(<span class="string">"Failed to pause: {:?}"</span>, e))<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="string">"Paused playback\n"</span>.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="string">"play" </span>=> {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Unpausing playback"</span>);
|
||||||
|
set_property(<span class="string">"pause"</span>, <span class="kw-2">&</span><span class="macro">json!</span>(<span class="bool-val">false</span>), <span class="prelude-val">None</span>)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>.map_err(|e| <span class="macro">format!</span>(<span class="string">"Failed to play: {:?}"</span>, e))<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="string">"Resumed playback\n"</span>.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="string">"stop" </span>=> {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Stopping playback and quitting MPV"</span>);
|
||||||
|
quit(<span class="prelude-val">None</span>)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>.map_err(|e| <span class="macro">format!</span>(<span class="string">"Failed to stop: {:?}"</span>, e))<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="string">"Stopped playback\n"</span>.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="string">"next" </span>=> {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Skipping to next item in the playlist"</span>);
|
||||||
|
playlist_next(<span class="prelude-val">None</span>)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>.map_err(|e| <span class="macro">format!</span>(<span class="string">"Failed to skip to next: {:?}"</span>, e))<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="string">"Skipped to next item\n"</span>.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="string">"prev" </span>=> {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Skipping to previous item in the playlist"</span>);
|
||||||
|
playlist_prev(<span class="prelude-val">None</span>)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>.map_err(|e| <span class="macro">format!</span>(<span class="string">"Failed to skip to previous: {:?}"</span>, e))<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="string">"Skipped to previous item\n"</span>.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="string">"seek" </span>=> {
|
||||||
|
<span class="kw">let </span>parts: Vec<<span class="kw-2">&</span>str> = command.split_whitespace().collect();
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Some</span>(seconds) = parts.get(<span class="number">1</span>) {
|
||||||
|
<span class="kw">if let </span><span class="prelude-val">Ok</span>(sec) = seconds.parse::<i32>() {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Seeking to {} seconds"</span>, sec);
|
||||||
|
seek(sec.into(), <span class="prelude-val">None</span>)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>.map_err(|e| <span class="macro">format!</span>(<span class="string">"Failed to seek: {:?}"</span>, e))<span class="question-mark">?</span>;
|
||||||
|
<span class="kw">return </span><span class="prelude-val">Ok</span>(<span class="macro">format!</span>(<span class="string">"Seeking to {} seconds\n"</span>, sec));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<span class="prelude-val">Err</span>(<span class="string">"Invalid seek command"</span>.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="string">"clear" </span>=> {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Clearing the playlist"</span>);
|
||||||
|
playlist_clear(<span class="prelude-val">None</span>)
|
||||||
|
.<span class="kw">await
|
||||||
|
</span>.map_err(|e| <span class="macro">format!</span>(<span class="string">"Failed to clear playlist: {:?}"</span>, e))<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="string">"Cleared playlist\n"</span>.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="string">"list" </span>=> {
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Listing playlist items"</span>);
|
||||||
|
<span class="kw">match </span>get_property(<span class="string">"playlist"</span>, <span class="prelude-val">None</span>).<span class="kw">await </span>{
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="prelude-val">Some</span>(data)) => <span class="prelude-val">Ok</span>(<span class="macro">format!</span>(
|
||||||
|
<span class="string">"Playlist: {}"</span>,
|
||||||
|
serde_json::to_string_pretty(<span class="kw-2">&</span>data).unwrap()
|
||||||
|
)),
|
||||||
|
<span class="prelude-val">Ok</span>(<span class="prelude-val">None</span>) => <span class="prelude-val">Err</span>(<span class="string">"No playlist data available"</span>.to_string()),
|
||||||
|
<span class="prelude-val">Err</span>(e) => <span class="prelude-val">Err</span>(<span class="macro">format!</span>(<span class="string">"Failed to fetch playlist: {:?}"</span>, e)),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<span class="kw">_ </span>=> <span class="prelude-val">Err</span>(<span class="string">"Unknown command"</span>.to_string()),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="kw">fn </span>create_tls_acceptor() -> <span class="prelude-ty">Result</span><TlsAcceptor, Box<<span class="kw">dyn </span>std::error::Error + Send + Sync>> {
|
||||||
|
<span class="kw">let </span>pfx_path = env::var(<span class="string">"TLS_PFX_PATH"</span>)
|
||||||
|
.map_err(|<span class="kw">_</span>| std::io::Error::new(std::io::ErrorKind::NotFound, <span class="string">"TLS_PFX_PATH not set"</span>))<span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span>password = env::var(<span class="string">"TLS_PASSWORD"</span>)
|
||||||
|
.map_err(|<span class="kw">_</span>| std::io::Error::new(std::io::ErrorKind::NotFound, <span class="string">"TLS_PASSWORD not set"</span>))<span class="question-mark">?</span>;
|
||||||
|
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>file = std::fs::File::open(<span class="kw-2">&</span>pfx_path)<span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span><span class="kw-2">mut </span>identity = <span class="macro">vec!</span>[];
|
||||||
|
file.read_to_end(<span class="kw-2">&mut </span>identity)<span class="question-mark">?</span>;
|
||||||
|
|
||||||
|
<span class="kw">let </span>identity = Identity::from_pkcs12(<span class="kw-2">&</span>identity, <span class="kw-2">&</span>password)<span class="question-mark">?</span>;
|
||||||
|
<span class="kw">let </span>native_acceptor = NativeTlsAcceptor::new(identity)<span class="question-mark">?</span>;
|
||||||
|
<span class="prelude-val">Ok</span>(TlsAcceptor::from(native_acceptor))
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="attr">#[tokio::main]
|
||||||
|
</span><span class="kw">async fn </span>main() -> <span class="prelude-ty">Result</span><(), Box<<span class="kw">dyn </span>std::error::Error + Send + Sync>> {
|
||||||
|
tracing_subscriber::fmt::init();
|
||||||
|
<span class="kw">let </span>config = Config::parse();
|
||||||
|
|
||||||
|
<span class="kw">if </span>!std::path::Path::new(<span class="kw-2">&</span>config.socket).exists() {
|
||||||
|
<span class="macro">error!</span>(
|
||||||
|
<span class="string">"Error: MPV socket not found at '{}'. Is MPV running?"</span>,
|
||||||
|
config.socket
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Server is starting..."</span>);
|
||||||
|
<span class="kw">match </span>create_tls_acceptor() {
|
||||||
|
<span class="prelude-val">Ok</span>(acceptor) => {
|
||||||
|
<span class="kw">let </span>acceptor = Arc::new(acceptor);
|
||||||
|
<span class="kw">let </span>listener = tokio::net::TcpListener::bind(<span class="kw-2">&</span>config.bind).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="macro">info!</span>(<span class="string">"Server is listening on {}"</span>, config.bind);
|
||||||
|
|
||||||
|
<span class="kw">loop </span>{
|
||||||
|
<span class="kw">let </span>(stream, <span class="kw">_</span>) = listener.accept().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||||
|
<span class="macro">info!</span>(<span class="string">"New connection accepted."</span>);
|
||||||
|
|
||||||
|
<span class="kw">let </span>acceptor = Arc::clone(<span class="kw-2">&</span>acceptor);
|
||||||
|
tokio::spawn(handle_connection(stream, acceptor));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<span class="prelude-val">Err</span>(e) => {
|
||||||
|
<span class="macro">error!</span>(<span class="string">"Failed to initialize TLS: {}"</span>, e);
|
||||||
|
<span class="kw">return </span><span class="prelude-val">Err</span>(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code></pre></div></section></main></body></html>
|
||||||
50
static.files/COPYRIGHT-eb44e4cf.txt
Normal file
50
static.files/COPYRIGHT-eb44e4cf.txt
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
# REUSE-IgnoreStart
|
||||||
|
|
||||||
|
These documentation pages include resources by third parties. This copyright
|
||||||
|
file applies only to those resources. The following third party resources are
|
||||||
|
included, and carry their own copyright notices and license terms:
|
||||||
|
|
||||||
|
* Fira Sans (FiraSans-Regular.woff2, FiraSans-Medium.woff2):
|
||||||
|
|
||||||
|
Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
|
||||||
|
with Reserved Font Name Fira Sans.
|
||||||
|
|
||||||
|
Copyright (c) 2014, Telefonica S.A.
|
||||||
|
|
||||||
|
Licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
See FiraSans-LICENSE.txt.
|
||||||
|
|
||||||
|
* rustdoc.css, main.js, and playpen.js:
|
||||||
|
|
||||||
|
Copyright 2015 The Rust Developers.
|
||||||
|
Licensed under the Apache License, Version 2.0 (see LICENSE-APACHE.txt) or
|
||||||
|
the MIT license (LICENSE-MIT.txt) at your option.
|
||||||
|
|
||||||
|
* normalize.css:
|
||||||
|
|
||||||
|
Copyright (c) Nicolas Gallagher and Jonathan Neal.
|
||||||
|
Licensed under the MIT license (see LICENSE-MIT.txt).
|
||||||
|
|
||||||
|
* Source Code Pro (SourceCodePro-Regular.ttf.woff2,
|
||||||
|
SourceCodePro-Semibold.ttf.woff2, SourceCodePro-It.ttf.woff2):
|
||||||
|
|
||||||
|
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
||||||
|
with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark
|
||||||
|
of Adobe Systems Incorporated in the United States and/or other countries.
|
||||||
|
|
||||||
|
Licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
See SourceCodePro-LICENSE.txt.
|
||||||
|
|
||||||
|
* Source Serif 4 (SourceSerif4-Regular.ttf.woff2, SourceSerif4-Bold.ttf.woff2,
|
||||||
|
SourceSerif4-It.ttf.woff2):
|
||||||
|
|
||||||
|
Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name
|
||||||
|
'Source'. All Rights Reserved. Source is a trademark of Adobe in the United
|
||||||
|
States and/or other countries.
|
||||||
|
|
||||||
|
Licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
See SourceSerif4-LICENSE.md.
|
||||||
|
|
||||||
|
This copyright file is intended to be distributed with rustdoc output.
|
||||||
|
|
||||||
|
# REUSE-IgnoreEnd
|
||||||
98
static.files/FiraSans-LICENSE-05ab6dbd.txt
Normal file
98
static.files/FiraSans-LICENSE-05ab6dbd.txt
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
// REUSE-IgnoreStart
|
||||||
|
|
||||||
|
Digitized data copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A.
|
||||||
|
with Reserved Font Name < Fira >,
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
|
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
BIN
static.files/FiraSans-Medium-e1aa3f0a.woff2
Normal file
BIN
static.files/FiraSans-Medium-e1aa3f0a.woff2
Normal file
Binary file not shown.
BIN
static.files/FiraSans-Regular-0fe48ade.woff2
Normal file
BIN
static.files/FiraSans-Regular-0fe48ade.woff2
Normal file
Binary file not shown.
201
static.files/LICENSE-APACHE-a60eea81.txt
Normal file
201
static.files/LICENSE-APACHE-a60eea81.txt
Normal file
|
|
@ -0,0 +1,201 @@
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
23
static.files/LICENSE-MIT-23f18e03.txt
Normal file
23
static.files/LICENSE-MIT-23f18e03.txt
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
Permission is hereby granted, free of charge, to any
|
||||||
|
person obtaining a copy of this software and associated
|
||||||
|
documentation files (the "Software"), to deal in the
|
||||||
|
Software without restriction, including without
|
||||||
|
limitation the rights to use, copy, modify, merge,
|
||||||
|
publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software
|
||||||
|
is furnished to do so, subject to the following
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice
|
||||||
|
shall be included in all copies or substantial portions
|
||||||
|
of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
||||||
|
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||||||
|
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
||||||
|
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||||||
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
||||||
BIN
static.files/NanumBarunGothic-13b3dcba.ttf.woff2
Normal file
BIN
static.files/NanumBarunGothic-13b3dcba.ttf.woff2
Normal file
Binary file not shown.
103
static.files/NanumBarunGothic-LICENSE-a37d393b.txt
Normal file
103
static.files/NanumBarunGothic-LICENSE-a37d393b.txt
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
// REUSE-IgnoreStart
|
||||||
|
|
||||||
|
Copyright (c) 2010, NAVER Corporation (https://www.navercorp.com/),
|
||||||
|
|
||||||
|
with Reserved Font Name Nanum, Naver Nanum, NanumGothic, Naver NanumGothic,
|
||||||
|
NanumMyeongjo, Naver NanumMyeongjo, NanumBrush, Naver NanumBrush, NanumPen,
|
||||||
|
Naver NanumPen, Naver NanumGothicEco, NanumGothicEco, Naver NanumMyeongjoEco,
|
||||||
|
NanumMyeongjoEco, Naver NanumGothicLight, NanumGothicLight, NanumBarunGothic,
|
||||||
|
Naver NanumBarunGothic, NanumSquareRound, NanumBarunPen, MaruBuri
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
|
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
BIN
static.files/SourceCodePro-It-fc8b9304.ttf.woff2
Normal file
BIN
static.files/SourceCodePro-It-fc8b9304.ttf.woff2
Normal file
Binary file not shown.
97
static.files/SourceCodePro-LICENSE-67f54ca7.txt
Normal file
97
static.files/SourceCodePro-LICENSE-67f54ca7.txt
Normal file
|
|
@ -0,0 +1,97 @@
|
||||||
|
// REUSE-IgnoreStart
|
||||||
|
|
||||||
|
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
|
||||||
|
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
|
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
BIN
static.files/SourceCodePro-Regular-8badfe75.ttf.woff2
Normal file
BIN
static.files/SourceCodePro-Regular-8badfe75.ttf.woff2
Normal file
Binary file not shown.
BIN
static.files/SourceCodePro-Semibold-aa29a496.ttf.woff2
Normal file
BIN
static.files/SourceCodePro-Semibold-aa29a496.ttf.woff2
Normal file
Binary file not shown.
BIN
static.files/SourceSerif4-Bold-6d4fd4c0.ttf.woff2
Normal file
BIN
static.files/SourceSerif4-Bold-6d4fd4c0.ttf.woff2
Normal file
Binary file not shown.
BIN
static.files/SourceSerif4-It-ca3b17ed.ttf.woff2
Normal file
BIN
static.files/SourceSerif4-It-ca3b17ed.ttf.woff2
Normal file
Binary file not shown.
98
static.files/SourceSerif4-LICENSE-a2cfd9d5.md
Normal file
98
static.files/SourceSerif4-LICENSE-a2cfd9d5.md
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
<!-- REUSE-IgnoreStart -->
|
||||||
|
|
||||||
|
Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
|
||||||
|
Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
|
||||||
|
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
|
|
||||||
|
<!-- REUSE-IgnoreEnd -->
|
||||||
BIN
static.files/SourceSerif4-Regular-6b053e98.ttf.woff2
Normal file
BIN
static.files/SourceSerif4-Regular-6b053e98.ttf.woff2
Normal file
Binary file not shown.
24
static.files/favicon-044be391.svg
Normal file
24
static.files/favicon-044be391.svg
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;">
|
||||||
|
<defs>
|
||||||
|
<style type="text/css"><![CDATA[
|
||||||
|
#logo {
|
||||||
|
fill-rule: nonzero;
|
||||||
|
}
|
||||||
|
#logo-teeth {
|
||||||
|
stroke: #000000;
|
||||||
|
stroke-width: 0.92px;
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
#logo {
|
||||||
|
fill: #FFFFFF;
|
||||||
|
fill-rule: nonzero;
|
||||||
|
}
|
||||||
|
#logo-teeth {
|
||||||
|
fill: #FFFFFF;
|
||||||
|
stroke: #FFFFFF;
|
||||||
|
stroke-width: 0.92px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]]></style>
|
||||||
|
</defs>
|
||||||
|
<path id="logo" d="M15.993,1.54c-7.972,0 -14.461,6.492 -14.461,14.462c0,7.969 6.492,14.461 14.461,14.461c7.97,0 14.462,-6.492 14.462,-14.461c0,-7.97 -6.492,-14.462 -14.462,-14.462Zm-0.021,1.285c0.511,0.013 0.924,0.439 0.924,0.951c0,0.522 -0.43,0.952 -0.952,0.952c-0.522,0 -0.951,-0.43 -0.951,-0.952c0,0 0,0 0,0c0,-0.522 0.429,-0.952 0.951,-0.952c0.01,0 0.019,0.001 0.028,0.001Zm2.178,1.566c3.379,0.633 6.313,2.723 8.016,5.709l-1.123,2.533c-0.193,0.438 0.006,0.952 0.44,1.147l2.16,0.958c0.067,0.675 0.076,1.355 0.025,2.031l-1.202,0c-0.12,0 -0.169,0.08 -0.169,0.196l0,0.551c0,1.297 -0.731,1.582 -1.373,1.652c-0.612,0.07 -1.288,-0.257 -1.374,-0.63c-0.361,-2.029 -0.961,-2.46 -1.909,-3.21c1.178,-0.746 2.401,-1.85 2.401,-3.325c0,-1.594 -1.092,-2.597 -1.835,-3.09c-1.046,-0.688 -2.203,-0.826 -2.515,-0.826l-12.421,0c1.717,-1.918 4.02,-3.218 6.55,-3.696l1.466,1.536c0.33,0.346 0.878,0.361 1.223,0.028l1.64,-1.564Zm-13.522,7.043c0.511,0.015 0.924,0.44 0.924,0.951c0,0.522 -0.43,0.952 -0.952,0.952c-0.522,0 -0.951,-0.43 -0.951,-0.952c0,0 0,0 0,0c0,-0.522 0.429,-0.951 0.951,-0.951c0.009,0 0.019,0 0.028,0Zm22.685,0.043c0.511,0.015 0.924,0.44 0.924,0.951c0,0.522 -0.43,0.952 -0.952,0.952c-0.522,0 -0.951,-0.43 -0.951,-0.952c0,0 0,0 0,0c0,-0.522 0.429,-0.952 0.951,-0.952c0.01,0 0.019,0 0.028,0.001Zm-20.892,0.153l1.658,0l0,7.477l-3.347,0c-0.414,-1.452 -0.542,-2.97 -0.38,-4.47l2.05,-0.912c0.438,-0.195 0.637,-0.706 0.441,-1.144l-0.422,-0.951Zm6.92,0.079l3.949,0c0.205,0 1.441,0.236 1.441,1.163c0,0.768 -0.948,1.043 -1.728,1.043l-3.665,0l0.003,-2.206Zm0,5.373l3.026,0c0.275,0 1.477,0.079 1.86,1.615c0.119,0.471 0.385,2.007 0.566,2.499c0.18,0.551 0.911,1.652 1.691,1.652l4.938,0c-0.331,0.444 -0.693,0.863 -1.083,1.255l-2.01,-0.432c-0.468,-0.101 -0.93,0.199 -1.031,0.667l-0.477,2.228c-3.104,1.406 -6.672,1.389 -9.762,-0.046l-0.478,-2.228c-0.101,-0.468 -0.56,-0.767 -1.028,-0.667l-1.967,0.423c-0.365,-0.377 -0.704,-0.778 -1.016,-1.2l9.567,0c0.107,0 0.181,-0.018 0.181,-0.119l0,-3.384c0,-0.097 -0.074,-0.119 -0.181,-0.119l-2.799,0l0.003,-2.144Zm-4.415,7.749c0.512,0.015 0.924,0.44 0.924,0.951c0,0.522 -0.429,0.952 -0.951,0.952c-0.522,0 -0.952,-0.43 -0.952,-0.952c0,0 0,0 0,0c0,-0.522 0.43,-0.952 0.952,-0.952c0.009,0 0.018,0.001 0.027,0.001Zm14.089,0.043c0.511,0.015 0.924,0.439 0.923,0.951c0,0.522 -0.429,0.952 -0.951,0.952c-0.522,0 -0.951,-0.43 -0.951,-0.952c0,0 0,0 0,0c0,-0.522 0.429,-0.952 0.951,-0.952c0.009,0 0.018,0 0.028,0.001Z"/><path id="logo-teeth" d="M29.647,16.002c0,7.49 -6.163,13.653 -13.654,13.653c-7.49,0 -13.654,-6.163 -13.654,-13.653c0,-7.491 6.164,-13.654 13.654,-13.654c7.491,0 13.654,6.163 13.654,13.654Zm-0.257,-1.319l2.13,1.319l-2.13,1.318l1.83,1.71l-2.344,0.878l1.463,2.035l-2.475,0.404l1.04,2.282l-2.506,-0.089l0.575,2.442l-2.441,-0.576l0.089,2.506l-2.283,-1.04l-0.403,2.475l-2.035,-1.462l-0.878,2.343l-1.71,-1.829l-1.319,2.129l-1.318,-2.129l-1.71,1.829l-0.878,-2.343l-2.035,1.462l-0.404,-2.475l-2.282,1.04l0.089,-2.506l-2.442,0.576l0.575,-2.442l-2.505,0.089l1.04,-2.282l-2.475,-0.404l1.462,-2.035l-2.343,-0.878l1.829,-1.71l-2.129,-1.318l2.129,-1.319l-1.829,-1.71l2.343,-0.878l-1.462,-2.035l2.475,-0.404l-1.04,-2.282l2.505,0.089l-0.575,-2.441l2.442,0.575l-0.089,-2.506l2.282,1.04l0.404,-2.475l2.035,1.463l0.878,-2.344l1.71,1.83l1.318,-2.13l1.319,2.13l1.71,-1.83l0.878,2.344l2.035,-1.463l0.403,2.475l2.283,-1.04l-0.089,2.506l2.441,-0.575l-0.575,2.441l2.506,-0.089l-1.04,2.282l2.475,0.404l-1.463,2.035l2.344,0.878l-1.83,1.71Z"/></svg>
|
||||||
|
After Width: | Height: | Size: 4.2 KiB |
BIN
static.files/favicon-32x32-6580c154.png
Normal file
BIN
static.files/favicon-32x32-6580c154.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
11
static.files/main-5f194d8c.js
Normal file
11
static.files/main-5f194d8c.js
Normal file
File diff suppressed because one or more lines are too long
2
static.files/normalize-9960930a.css
Normal file
2
static.files/normalize-9960930a.css
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||||
|
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type="button"],[type="reset"],[type="submit"],button{-webkit-appearance:button}[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}
|
||||||
1
static.files/noscript-893ab5e7.css
Normal file
1
static.files/noscript-893ab5e7.css
Normal file
File diff suppressed because one or more lines are too long
61
static.files/rust-logo-9a9549ea.svg
Normal file
61
static.files/rust-logo-9a9549ea.svg
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
<svg version="1.1" height="106" width="106" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<g id="logo" transform="translate(53, 53)">
|
||||||
|
<path id="r" transform="translate(0.5, 0.5)" stroke="black" stroke-width="1" stroke-linejoin="round" d="
|
||||||
|
M -9,-15 H 4 C 12,-15 12,-7 4,-7 H -9 Z
|
||||||
|
M -40,22 H 0 V 11 H -9 V 3 H 1 C 12,3 6,22 15,22 H 40
|
||||||
|
V 3 H 34 V 5 C 34,13 25,12 24,7 C 23,2 19,-2 18,-2 C 33,-10 24,-26 12,-26 H -35
|
||||||
|
V -15 H -25 V 11 H -40 Z" />
|
||||||
|
<g id="gear" mask="url(#holes)">
|
||||||
|
<circle r="43" fill="none" stroke="black" stroke-width="9" />
|
||||||
|
<g id="cogs">
|
||||||
|
<polygon id="cog" stroke="black" stroke-width="3" stroke-linejoin="round" points="46,3 51,0 46,-3" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(11.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(22.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(33.75)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(45.00)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(56.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(67.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(78.75)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(90.00)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(101.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(112.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(123.75)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(135.00)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(146.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(157.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(168.75)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(180.00)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(191.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(202.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(213.75)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(225.00)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(236.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(247.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(258.75)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(270.00)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(281.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(292.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(303.75)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(315.00)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(326.25)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(337.50)" />
|
||||||
|
<use xlink:href="#cog" transform="rotate(348.75)" />
|
||||||
|
</g>
|
||||||
|
<g id="mounts">
|
||||||
|
<polygon id="mount" stroke="black" stroke-width="6" stroke-linejoin="round" points="-7,-42 0,-35 7,-42" />
|
||||||
|
<use xlink:href="#mount" transform="rotate(72)" />
|
||||||
|
<use xlink:href="#mount" transform="rotate(144)" />
|
||||||
|
<use xlink:href="#mount" transform="rotate(216)" />
|
||||||
|
<use xlink:href="#mount" transform="rotate(288)" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<mask id="holes">
|
||||||
|
<rect x="-60" y="-60" width="120" height="120" fill="white"/>
|
||||||
|
<circle id="hole" cy="-40" r="3" />
|
||||||
|
<use xlink:href="#hole" transform="rotate(72)" />
|
||||||
|
<use xlink:href="#hole" transform="rotate(144)" />
|
||||||
|
<use xlink:href="#hole" transform="rotate(216)" />
|
||||||
|
<use xlink:href="#hole" transform="rotate(288)" />
|
||||||
|
</mask>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
53
static.files/rustdoc-42caa33d.css
Normal file
53
static.files/rustdoc-42caa33d.css
Normal file
File diff suppressed because one or more lines are too long
1
static.files/scrape-examples-d508a8a9.js
Normal file
1
static.files/scrape-examples-d508a8a9.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
"use strict";(function(){const DEFAULT_MAX_LINES=5;const HIDDEN_MAX_LINES=10;function scrollToLoc(elt,loc,isHidden){const lines=elt.querySelector(".src-line-numbers > pre");let scrollOffset;const maxLines=isHidden?HIDDEN_MAX_LINES:DEFAULT_MAX_LINES;if(loc[1]-loc[0]>maxLines){const line=Math.max(0,loc[0]-1);scrollOffset=lines.children[line].offsetTop}else{const halfHeight=elt.offsetHeight/2;const offsetTop=lines.children[loc[0]].offsetTop;const lastLine=lines.children[loc[1]];const offsetBot=lastLine.offsetTop+lastLine.offsetHeight;const offsetMid=(offsetTop+offsetBot)/2;scrollOffset=offsetMid-halfHeight}lines.parentElement.scrollTo(0,scrollOffset);elt.querySelector(".rust").scrollTo(0,scrollOffset)}function createScrapeButton(parent,className,content){const button=document.createElement("button");button.className=className;button.innerText=content;parent.insertBefore(button,parent.firstChild);return button}window.updateScrapedExample=(example,buttonHolder)=>{let locIndex=0;const highlights=Array.prototype.slice.call(example.querySelectorAll(".highlight"));const link=example.querySelector(".scraped-example-title a");let expandButton=null;if(!example.classList.contains("expanded")){expandButton=createScrapeButton(buttonHolder,"expand","↕")}const isHidden=example.parentElement.classList.contains("more-scraped-examples");const locs=example.locs;if(locs.length>1){const next=createScrapeButton(buttonHolder,"next","≻");const prev=createScrapeButton(buttonHolder,"prev","≺");const onChangeLoc=changeIndex=>{removeClass(highlights[locIndex],"focus");changeIndex();scrollToLoc(example,locs[locIndex][0],isHidden);addClass(highlights[locIndex],"focus");const url=locs[locIndex][1];const title=locs[locIndex][2];link.href=url;link.innerHTML=title};prev.addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex-1+locs.length)%locs.length})});next.addEventListener("click",()=>{onChangeLoc(()=>{locIndex=(locIndex+1)%locs.length})})}if(expandButton){expandButton.addEventListener("click",()=>{if(hasClass(example,"expanded")){removeClass(example,"expanded");scrollToLoc(example,locs[0][0],isHidden)}else{addClass(example,"expanded")}})}};function setupLoc(example,isHidden){example.locs=JSON.parse(example.attributes.getNamedItem("data-locs").textContent);scrollToLoc(example,example.locs[0][0],isHidden)}const firstExamples=document.querySelectorAll(".scraped-example-list > .scraped-example");onEachLazy(firstExamples,el=>setupLoc(el,false));onEachLazy(document.querySelectorAll(".more-examples-toggle"),toggle=>{onEachLazy(toggle.querySelectorAll(".toggle-line, .hide-more"),button=>{button.addEventListener("click",()=>{toggle.open=false})});const moreExamples=toggle.querySelectorAll(".scraped-example");toggle.querySelector("summary").addEventListener("click",()=>{setTimeout(()=>{onEachLazy(moreExamples,el=>setupLoc(el,true))})},{once:true})})})()
|
||||||
6
static.files/search-92e6798f.js
Normal file
6
static.files/search-92e6798f.js
Normal file
File diff suppressed because one or more lines are too long
17
static.files/settings-0f613d39.js
Normal file
17
static.files/settings-0f613d39.js
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break;case"hide-sidebar":if(value===true){addClass(document.documentElement,"hide-sidebar")}else{removeClass(document.documentElement,"hide-sidebar")}break;case"hide-toc":if(value===true){addClass(document.documentElement,"hide-toc")}else{removeClass(document.documentElement,"hide-toc")}break;case"hide-modnav":if(value===true){addClass(document.documentElement,"hide-modnav")}else{removeClass(document.documentElement,"hide-modnav")}break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=()=>{changeSetting(toggle.id,toggle.checked)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){settingValue=useSystem==="false"?"light":"system preference"}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){if(setting==="hr"){output+="<hr>";continue}const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\
|
||||||
|
<div class="setting-line" id="${js_data_name}">
|
||||||
|
<div class="setting-radio-name">${setting_name}</div>
|
||||||
|
<div class="setting-radio-choices">`;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\
|
||||||
|
<label for="${full}" class="setting-radio">
|
||||||
|
<input type="radio" name="${js_data_name}"
|
||||||
|
id="${full}" value="${option}"${checked}>
|
||||||
|
<span>${option}</span>
|
||||||
|
</label>`});output+=`\
|
||||||
|
</div>
|
||||||
|
</div>`}else{const checked=setting["default"]===true?" checked":"";output+=`\
|
||||||
|
<div class="setting-line">\
|
||||||
|
<label class="setting-check">\
|
||||||
|
<input type="checkbox" id="${js_data_name}"${checked}>\
|
||||||
|
<span>${setting_name}</span>\
|
||||||
|
</label>\
|
||||||
|
</div>`}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Hide persistent navigation bar","js_name":"hide-sidebar","default":false,},{"name":"Hide table of contents","js_name":"hide-toc","default":false,},{"name":"Hide module navigation","js_name":"hide-modnav","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`<div class="settings">${buildSettingsPageSections(settings)}</div>`;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display="";onEachLazy(settingsMenu.querySelectorAll("input[type='checkbox']"),el=>{const val=getSettingValue(el.id);const checked=val==="true";if(checked!==el.checked&&val!==null){el.checked=checked}})}function settingsBlurHandler(event){if(!getHelpButton().contains(document.activeElement)&&!getHelpButton().contains(event.relatedTarget)&&!getSettingsButton().contains(document.activeElement)&&!getSettingsButton().contains(event.relatedTarget)){window.hidePopoverMenus()}}if(!isSettingsPage){const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=event=>{if(settingsMenu.contains(event.target)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})()
|
||||||
1
static.files/src-script-56102188.js
Normal file
1
static.files/src-script-56102188.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
"use strict";(function(){const rootPath=getVar("root-path");const NAME_OFFSET=0;const DIRS_OFFSET=1;const FILES_OFFSET=2;const RUSTDOC_MOBILE_BREAKPOINT=700;function closeSidebarIfMobile(){if(window.innerWidth<RUSTDOC_MOBILE_BREAKPOINT){updateLocalStorage("source-sidebar-show","false")}}function createDirEntry(elem,parent,fullPath,hasFoundFile){const dirEntry=document.createElement("details");const summary=document.createElement("summary");dirEntry.className="dir-entry";fullPath+=elem[NAME_OFFSET]+"/";summary.innerText=elem[NAME_OFFSET];dirEntry.appendChild(summary);const folders=document.createElement("div");folders.className="folders";if(elem[DIRS_OFFSET]){for(const dir of elem[DIRS_OFFSET]){if(createDirEntry(dir,folders,fullPath,false)){dirEntry.open=true;hasFoundFile=true}}}dirEntry.appendChild(folders);const files=document.createElement("div");files.className="files";if(elem[FILES_OFFSET]){const w=window.location.href.split("#")[0];for(const file_text of elem[FILES_OFFSET]){const file=document.createElement("a");file.innerText=file_text;file.href=rootPath+"src/"+fullPath+file_text+".html";file.addEventListener("click",closeSidebarIfMobile);if(!hasFoundFile&&w===file.href){file.className="selected";dirEntry.open=true;hasFoundFile=true}files.appendChild(file)}}dirEntry.appendChild(files);parent.appendChild(dirEntry);return hasFoundFile}window.rustdocCloseSourceSidebar=()=>{removeClass(document.documentElement,"src-sidebar-expanded");updateLocalStorage("source-sidebar-show","false")};window.rustdocShowSourceSidebar=()=>{addClass(document.documentElement,"src-sidebar-expanded");updateLocalStorage("source-sidebar-show","true")};window.rustdocToggleSrcSidebar=()=>{if(document.documentElement.classList.contains("src-sidebar-expanded")){window.rustdocCloseSourceSidebar()}else{window.rustdocShowSourceSidebar()}};function createSrcSidebar(){const container=document.querySelector("nav.sidebar");const sidebar=document.createElement("div");sidebar.id="src-sidebar";let hasFoundFile=false;for(const[key,source]of srcIndex){source[NAME_OFFSET]=key;hasFoundFile=createDirEntry(source,sidebar,"",hasFoundFile)}container.appendChild(sidebar);const selected_elem=sidebar.getElementsByClassName("selected")[0];if(typeof selected_elem!=="undefined"){selected_elem.focus()}}function highlightSrcLines(){const match=window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);if(!match){return}let from=parseInt(match[1],10);let to=from;if(typeof match[2]!=="undefined"){to=parseInt(match[2],10)}if(to<from){const tmp=to;to=from;from=tmp}let elem=document.getElementById(from);if(!elem){return}const x=document.getElementById(from);if(x){x.scrollIntoView()}onEachLazy(document.getElementsByClassName("src-line-numbers"),e=>{onEachLazy(e.getElementsByTagName("a"),i_e=>{removeClass(i_e,"line-highlighted")})});for(let i=from;i<=to;++i){elem=document.getElementById(i);if(!elem){break}addClass(elem,"line-highlighted")}}const handleSrcHighlight=(function(){let prev_line_id=0;const set_fragment=name=>{const x=window.scrollX,y=window.scrollY;if(browserSupportsHistoryApi()){history.replaceState(null,null,"#"+name);highlightSrcLines()}else{location.replace("#"+name)}window.scrollTo(x,y)};return ev=>{let cur_line_id=parseInt(ev.target.id,10);if(isNaN(cur_line_id)||ev.ctrlKey||ev.altKey||ev.metaKey){return}ev.preventDefault();if(ev.shiftKey&&prev_line_id){if(prev_line_id>cur_line_id){const tmp=prev_line_id;prev_line_id=cur_line_id;cur_line_id=tmp}set_fragment(prev_line_id+"-"+cur_line_id)}else{prev_line_id=cur_line_id;set_fragment(cur_line_id)}}}());window.addEventListener("hashchange",highlightSrcLines);onEachLazy(document.getElementsByClassName("src-line-numbers"),el=>{el.addEventListener("click",handleSrcHighlight)});highlightSrcLines();window.createSrcSidebar=createSrcSidebar})()
|
||||||
23
static.files/storage-59e33391.js
Normal file
23
static.files/storage-59e33391.js
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
"use strict";const builtinThemes=["light","dark","ayu"];const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");return settingsElement&&settingsElement.dataset?settingsElement.dataset:null})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current===null&&settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return current}const localStoredTheme=getSettingValue("theme");function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(elem&&elem.classList){elem.classList.add(className)}}function removeClass(elem,className){if(elem&&elem.classList){elem.classList.remove(className)}}function onEach(arr,func){for(const elem of arr){if(func(elem)){return true}}return false}function onEachLazy(lazyArray,func){return onEach(Array.prototype.slice.call(lazyArray),func)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}const getVar=(function getVar(name){const el=document.querySelector("head > meta[name='rustdoc-vars']");return el?el.attributes["data-"+name].value:null});function switchTheme(newThemeName,saveTheme){const themeNames=getVar("themes").split(",").filter(t=>t);themeNames.push(...builtinThemes);if(themeNames.indexOf(newThemeName)===-1){return}if(saveTheme){updateLocalStorage("theme",newThemeName)}document.documentElement.setAttribute("data-theme",newThemeName);if(builtinThemes.indexOf(newThemeName)!==-1){if(window.currentTheme){window.currentTheme.parentNode.removeChild(window.currentTheme);window.currentTheme=null}}else{const newHref=getVar("root-path")+encodeURIComponent(newThemeName)+getVar("resource-suffix")+".css";if(!window.currentTheme){if(document.readyState==="loading"){document.write(`<link rel="stylesheet" id="themeStyle" href="${newHref}">`);window.currentTheme=document.getElementById("themeStyle")}else{window.currentTheme=document.createElement("link");window.currentTheme.rel="stylesheet";window.currentTheme.id="themeStyle";window.currentTheme.href=newHref;document.documentElement.appendChild(window.currentTheme)}}else if(newHref!==window.currentTheme.href){window.currentTheme.href=newHref}}}const updateTheme=(function(){const mql=window.matchMedia("(prefers-color-scheme: dark)");function updateTheme(){if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";updateLocalStorage("use-system-theme","true");switchTheme(mql.matches?darkTheme:lightTheme,true)}else{switchTheme(getSettingValue("theme"),false)}}mql.addEventListener("change",updateTheme);return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"src-sidebar-expanded")}if(getSettingValue("hide-sidebar")==="true"){addClass(document.documentElement,"hide-sidebar")}if(getSettingValue("hide-toc")==="true"){addClass(document.documentElement,"hide-toc")}if(getSettingValue("hide-modnav")==="true"){addClass(document.documentElement,"hide-modnav")}function updateSidebarWidth(){const desktopSidebarWidth=getSettingValue("desktop-sidebar-width");if(desktopSidebarWidth&&desktopSidebarWidth!=="null"){document.documentElement.style.setProperty("--desktop-sidebar-width",desktopSidebarWidth+"px",)}const srcSidebarWidth=getSettingValue("src-sidebar-width");if(srcSidebarWidth&&srcSidebarWidth!=="null"){document.documentElement.style.setProperty("--src-sidebar-width",srcSidebarWidth+"px",)}}updateSidebarWidth();window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0);setTimeout(updateSidebarWidth,0)}});class RustdocSearchElement extends HTMLElement{constructor(){super()}connectedCallback(){const rootPath=getVar("root-path");const currentCrate=getVar("current-crate");this.innerHTML=`<nav class="sub">
|
||||||
|
<form class="search-form">
|
||||||
|
<span></span> <!-- This empty span is a hacky fix for Safari - See #93184 -->
|
||||||
|
<div id="sidebar-button" tabindex="-1">
|
||||||
|
<a href="${rootPath}${currentCrate}/all.html" title="show sidebar"></a>
|
||||||
|
</div>
|
||||||
|
<input
|
||||||
|
class="search-input"
|
||||||
|
name="search"
|
||||||
|
aria-label="Run search in the documentation"
|
||||||
|
autocomplete="off"
|
||||||
|
spellcheck="false"
|
||||||
|
placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…"
|
||||||
|
type="search">
|
||||||
|
</form>
|
||||||
|
</nav>`}}window.customElements.define("rustdoc-search",RustdocSearchElement);class RustdocToolbarElement extends HTMLElement{constructor(){super()}connectedCallback(){if(this.firstElementChild){return}const rootPath=getVar("root-path");this.innerHTML=`
|
||||||
|
<div id="settings-menu" tabindex="-1">
|
||||||
|
<a href="${rootPath}settings.html"><span class="label">Settings</span></a>
|
||||||
|
</div>
|
||||||
|
<div id="help-button" tabindex="-1">
|
||||||
|
<a href="${rootPath}help.html"><span class="label">Help</span></a>
|
||||||
|
</div>
|
||||||
|
<button id="toggle-all-docs"><span class="label">Summary</span></button>`}}window.customElements.define("rustdoc-toolbar",RustdocToolbarElement)
|
||||||
9
trait.impl/clap_builder/derive/trait.Args.js
Normal file
9
trait.impl/clap_builder/derive/trait.Args.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl Args for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>"]]],["server",[["impl Args for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>"]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[110,129]}
|
||||||
9
trait.impl/clap_builder/derive/trait.CommandFactory.js
Normal file
9
trait.impl/clap_builder/derive/trait.CommandFactory.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl CommandFactory for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>"]]],["server",[["impl CommandFactory for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>"]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[120,139]}
|
||||||
9
trait.impl/clap_builder/derive/trait.FromArgMatches.js
Normal file
9
trait.impl/clap_builder/derive/trait.FromArgMatches.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl FromArgMatches for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>"],["impl FromArgMatches for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>"]]],["server",[["impl FromArgMatches for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>"]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[258,139]}
|
||||||
9
trait.impl/clap_builder/derive/trait.Parser.js
Normal file
9
trait.impl/clap_builder/derive/trait.Parser.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl Parser for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>"]]],["server",[["impl Parser for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>"]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[112,131]}
|
||||||
9
trait.impl/clap_builder/derive/trait.Subcommand.js
Normal file
9
trait.impl/clap_builder/derive/trait.Subcommand.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl Subcommand for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>"]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[143]}
|
||||||
9
trait.impl/core/fmt/trait.Debug.js
Normal file
9
trait.impl/core/fmt/trait.Debug.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["mrc",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/fmt/trait.Debug.html\" title=\"trait core::fmt::Debug\">Debug</a> for <a class=\"enum\" href=\"mrc/enum.MpvCommand.html\" title=\"enum mrc::MpvCommand\">MpvCommand</a>"]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[250]}
|
||||||
9
trait.impl/core/marker/trait.Freeze.js
Normal file
9
trait.impl/core/marker/trait.Freeze.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Freeze.html\" title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>",1,["cli::CommandOptions"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Freeze.html\" title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>",1,["cli::Cli"]]]],["mrc",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Freeze.html\" title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"enum\" href=\"mrc/enum.MpvCommand.html\" title=\"enum mrc::MpvCommand\">MpvCommand</a>",1,["mrc::MpvCommand"]]]],["server",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Freeze.html\" title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>",1,["server::Config"]]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[547,282,284]}
|
||||||
9
trait.impl/core/marker/trait.Send.js
Normal file
9
trait.impl/core/marker/trait.Send.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>",1,["cli::CommandOptions"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>",1,["cli::Cli"]]]],["mrc",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"enum\" href=\"mrc/enum.MpvCommand.html\" title=\"enum mrc::MpvCommand\">MpvCommand</a>",1,["mrc::MpvCommand"]]]],["server",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Send.html\" title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>",1,["server::Config"]]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[535,276,278]}
|
||||||
9
trait.impl/core/marker/trait.Sync.js
Normal file
9
trait.impl/core/marker/trait.Sync.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>",1,["cli::CommandOptions"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>",1,["cli::Cli"]]]],["mrc",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"enum\" href=\"mrc/enum.MpvCommand.html\" title=\"enum mrc::MpvCommand\">MpvCommand</a>",1,["mrc::MpvCommand"]]]],["server",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>",1,["server::Config"]]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[535,276,278]}
|
||||||
9
trait.impl/core/marker/trait.Unpin.js
Normal file
9
trait.impl/core/marker/trait.Unpin.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>",1,["cli::CommandOptions"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>",1,["cli::Cli"]]]],["mrc",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> for <a class=\"enum\" href=\"mrc/enum.MpvCommand.html\" title=\"enum mrc::MpvCommand\">MpvCommand</a>",1,["mrc::MpvCommand"]]]],["server",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>",1,["server::Config"]]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[541,279,281]}
|
||||||
9
trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
Normal file
9
trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html\" title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>",1,["cli::CommandOptions"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html\" title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>",1,["cli::Cli"]]]],["mrc",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html\" title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for <a class=\"enum\" href=\"mrc/enum.MpvCommand.html\" title=\"enum mrc::MpvCommand\">MpvCommand</a>",1,["mrc::MpvCommand"]]]],["server",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html\" title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>",1,["server::Config"]]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[635,326,328]}
|
||||||
9
trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
Normal file
9
trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(function() {
|
||||||
|
var implementors = Object.fromEntries([["cli",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.UnwindSafe.html\" title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a class=\"enum\" href=\"cli/enum.CommandOptions.html\" title=\"enum cli::CommandOptions\">CommandOptions</a>",1,["cli::CommandOptions"]],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.UnwindSafe.html\" title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a class=\"struct\" href=\"cli/struct.Cli.html\" title=\"struct cli::Cli\">Cli</a>",1,["cli::Cli"]]]],["mrc",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.UnwindSafe.html\" title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a class=\"enum\" href=\"mrc/enum.MpvCommand.html\" title=\"enum mrc::MpvCommand\">MpvCommand</a>",1,["mrc::MpvCommand"]]]],["server",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.UnwindSafe.html\" title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a class=\"struct\" href=\"server/struct.Config.html\" title=\"struct server::Config\">Config</a>",1,["server::Config"]]]]]);
|
||||||
|
if (window.register_implementors) {
|
||||||
|
window.register_implementors(implementors);
|
||||||
|
} else {
|
||||||
|
window.pending_implementors = implementors;
|
||||||
|
}
|
||||||
|
})()
|
||||||
|
//{"start":57,"fragment_lengths":[617,317,319]}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue