mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-17 08:19:51 +00:00
11 lines
No EOL
13 KiB
HTML
11 lines
No EOL
13 KiB
HTML
<!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="An error that can be produced during (de)serializing."><title>Error in bincode - 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="bincode" 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 type"><!--[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="../bincode/index.html">bincode</a><span class="version">1.3.3</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Error</a></h2><h3><a href="#aliased-type">Aliased type</a></h3><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Error-for-Box%3CErrorKind%3E" title="Error">Error</a></li><li><a href="#impl-Error-for-Box%3CErrorKind%3E-1" title="Error">Error</a></li><li><a href="#impl-From%3CError%3E-for-Box%3CErrorKind%3E" title="From<Error>">From<Error></a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate bincode</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">bincode</a></span><h1>Type Alias <span class="type">Error</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/bincode/error.rs.html#12">Source</a> </span></div><pre class="rust item-decl"><code>pub type Error = <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="enum" href="enum.ErrorKind.html" title="enum bincode::ErrorKind">ErrorKind</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An error that can be produced during (de)serializing.</p>
|
|
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>struct Error(<span class="comment">/* private fields */</span>);</code></pre><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-Error-for-Box%3CErrorKind%3E" class="impl"><a class="src rightside" href="../src/bincode/error.rs.html#105-109">Source</a><a href="#impl-Error-for-Box%3CErrorKind%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../serde/de/trait.Error.html" title="trait serde::de::Error">Error</a> for <a class="type" href="type.Error.html" title="type bincode::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.custom" class="method trait-impl"><a class="src rightside" href="../src/bincode/error.rs.html#106-108">Source</a><a href="#method.custom" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#tymethod.custom" class="fn">custom</a><T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>>(desc: T) -> <a class="type" href="type.Error.html" title="type bincode::Error">Error</a></h4></section></summary><div class='docblock'>Raised when there is general error when deserializing a type. <a href="../serde/de/trait.Error.html#tymethod.custom">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.invalid_type" class="method trait-impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#300">Source</a><a href="#method.invalid_type" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#method.invalid_type" class="fn">invalid_type</a>(unexp: <a class="enum" href="../serde/de/enum.Unexpected.html" title="enum serde::de::Unexpected">Unexpected</a><'_>, exp: &dyn <a class="trait" href="../serde/de/trait.Expected.html" title="trait serde::de::Expected">Expected</a>) -> Self</h4></section></summary><div class='docblock'>Raised when a <code>Deserialize</code> receives a type different from what it was
|
|
expecting. <a href="../serde/de/trait.Error.html#method.invalid_type">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.invalid_value" class="method trait-impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#300">Source</a><a href="#method.invalid_value" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#method.invalid_value" class="fn">invalid_value</a>(unexp: <a class="enum" href="../serde/de/enum.Unexpected.html" title="enum serde::de::Unexpected">Unexpected</a><'_>, exp: &dyn <a class="trait" href="../serde/de/trait.Expected.html" title="trait serde::de::Expected">Expected</a>) -> Self</h4></section></summary><div class='docblock'>Raised when a <code>Deserialize</code> receives a value of the right type but that
|
|
is wrong for some other reason. <a href="../serde/de/trait.Error.html#method.invalid_value">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.invalid_length" class="method trait-impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#300">Source</a><a href="#method.invalid_length" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#method.invalid_length" class="fn">invalid_length</a>(len: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>, exp: &dyn <a class="trait" href="../serde/de/trait.Expected.html" title="trait serde::de::Expected">Expected</a>) -> Self</h4></section></summary><div class='docblock'>Raised when deserializing a sequence or map and the input data contains
|
|
too many or too few elements. <a href="../serde/de/trait.Error.html#method.invalid_length">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.unknown_variant" class="method trait-impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#300">Source</a><a href="#method.unknown_variant" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#method.unknown_variant" class="fn">unknown_variant</a>(variant: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>, expected: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>]) -> Self</h4></section></summary><div class='docblock'>Raised when a <code>Deserialize</code> enum type received a variant with an
|
|
unrecognized name.</div></details><details class="toggle method-toggle" open><summary><section id="method.unknown_field" class="method trait-impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#300">Source</a><a href="#method.unknown_field" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#method.unknown_field" class="fn">unknown_field</a>(field: &<a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>, expected: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>]) -> Self</h4></section></summary><div class='docblock'>Raised when a <code>Deserialize</code> struct type received a field with an
|
|
unrecognized name.</div></details><details class="toggle method-toggle" open><summary><section id="method.missing_field" class="method trait-impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#300">Source</a><a href="#method.missing_field" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#method.missing_field" class="fn">missing_field</a>(field: &'static <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>) -> Self</h4></section></summary><div class='docblock'>Raised when a <code>Deserialize</code> struct type expected to receive a required
|
|
field with a particular name but that field was not present in the
|
|
input.</div></details><details class="toggle method-toggle" open><summary><section id="method.duplicate_field" class="method trait-impl"><a class="src rightside" href="../src/serde/de/mod.rs.html#300">Source</a><a href="#method.duplicate_field" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/de/trait.Error.html#method.duplicate_field" class="fn">duplicate_field</a>(field: &'static <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.str.html">str</a>) -> Self</h4></section></summary><div class='docblock'>Raised when a <code>Deserialize</code> struct type received more than one of the
|
|
same field.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Error-for-Box%3CErrorKind%3E-1" class="impl"><a class="src rightside" href="../src/bincode/error.rs.html#111-115">Source</a><a href="#impl-Error-for-Box%3CErrorKind%3E-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../serde/ser/trait.Error.html" title="trait serde::ser::Error">Error</a> for <a class="type" href="type.Error.html" title="type bincode::Error">Error</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.custom-1" class="method trait-impl"><a class="src rightside" href="../src/bincode/error.rs.html#112-114">Source</a><a href="#method.custom-1" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Error.html#tymethod.custom" class="fn">custom</a><T: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>>(msg: T) -> Self</h4></section></summary><div class='docblock'>Used when a <a href="../trait.Serialize.html"><code>Serialize</code></a> implementation encounters any error
|
|
while serializing a type. <a href="../serde/ser/trait.Error.html#tymethod.custom">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CError%3E-for-Box%3CErrorKind%3E" class="impl"><a class="src rightside" href="../src/bincode/error.rs.html#76-80">Source</a><a href="#impl-From%3CError%3E-for-Box%3CErrorKind%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>> for <a class="type" href="type.Error.html" title="type bincode::Error">Error</a></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="../src/bincode/error.rs.html#77-79">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>(err: <a class="struct" href="https://doc.rust-lang.org/1.84.1/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>) -> <a class="type" href="type.Error.html" title="type bincode::Error">Error</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details></div><script src="../type.impl/alloc/boxed/struct.Box.js" data-self-path="bincode::error::Error" async></script></section></div></main></body></html> |