mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-11 07:42:54 +00:00
15 lines
14 KiB
HTML
15 lines
14 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="API documentation for the Rust `StackError` trait in crate `common_error`."><title>StackError in common_error::ext - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-e56847b5.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="common_error" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (fa3155a64 2025-09-30)" data-channel="nightly" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">StackError</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../common_error/index.html">common_<wbr>error</a><span class="version">1.0.0-beta.3</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Stack<wbr>Error</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.debug_fmt" title="debug_fmt">debug_fmt</a></li><li><a href="#tymethod.next" title="next">next</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.last" title="last">last</a></li><li><a href="#method.transparent" title="transparent">transparent</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-StackError-for-Arc%3CT%3E" title="Arc<T>">Arc<T></a></li><li><a href="#impl-StackError-for-Box%3CT%3E" title="Box<T>">Box<T></a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In common_<wbr>error::<wbr>ext</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">common_error</a>::<wbr><a href="index.html">ext</a></div><h1>Trait <span class="trait">Stack<wbr>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/common_error/ext.rs.html#72-97">Source</a> </span></div><pre class="rust item-decl"><code>pub trait StackError: <a class="trait" href="https://doc.rust-lang.org/nightly/core/error/trait.Error.html" title="trait core::error::Error">Error</a> {
|
|
// Required methods
|
|
fn <a href="#tymethod.debug_fmt" class="fn">debug_fmt</a>(&self, layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, buf: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>);
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.next" class="fn">next</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a>>;
|
|
|
|
// Provided methods
|
|
fn <a href="#method.last" class="fn">last</a>(&self) -> &dyn <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a>
|
|
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.transparent" class="fn">transparent</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> { ... }
|
|
}</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.debug_fmt" class="method"><a class="src rightside" href="../../src/common_error/ext.rs.html#73">Source</a><h4 class="code-header">fn <a href="#tymethod.debug_fmt" class="fn">debug_fmt</a>(&self, layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, buf: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>)</h4></section><section id="tymethod.next" class="method"><a class="src rightside" href="../../src/common_error/ext.rs.html#75">Source</a><h4 class="code-header">fn <a href="#tymethod.next" class="fn">next</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a>></h4></section></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.last" class="method"><a class="src rightside" href="../../src/common_error/ext.rs.html#77-88">Source</a><h4 class="code-header">fn <a href="#method.last" class="fn">last</a>(&self) -> &dyn <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a><div class="where">where
|
|
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><details class="toggle method-toggle" open><summary><section id="method.transparent" class="method"><a class="src rightside" href="../../src/common_error/ext.rs.html#94-96">Source</a><h4 class="code-header">fn <a href="#method.transparent" class="fn">transparent</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Indicates whether this error is “transparent”, that it delegates its “display” and “source”
|
|
to the underlying error. Could be useful when you are just wrapping some external error,
|
|
<strong>AND</strong> can not or would not provide meaningful contextual info. For example, the
|
|
<code>DataFusionError</code>.</p>
|
|
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-StackError-for-Box%3CT%3E" class="impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#109-117">Source</a><a href="#impl-StackError-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a>> <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T></h3></section></summary><div class="impl-items"><section id="method.debug_fmt" class="method trait-impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#110-112">Source</a><a href="#method.debug_fmt" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.debug_fmt" class="fn">debug_fmt</a>(&self, layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, buf: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>)</h4></section><section id="method.next" class="method trait-impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#114-116">Source</a><a href="#method.next" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.next" class="fn">next</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-StackError-for-Arc%3CT%3E" class="impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#99-107">Source</a><a href="#impl-StackError-for-Arc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a>> <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T></h3></section></summary><div class="impl-items"><section id="method.debug_fmt-1" class="method trait-impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#100-102">Source</a><a href="#method.debug_fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.debug_fmt" class="fn">debug_fmt</a>(&self, layer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, buf: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>)</h4></section><section id="method.next-1" class="method trait-impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#104-106">Source</a><a href="#method.next-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.next" class="fn">next</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&dyn <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a>></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-StackError-for-MockError" class="impl"><a class="src rightside" href="../../src/common_error/mock.rs.html#67-73">Source</a><a href="#impl-StackError-for-MockError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a> for <a class="struct" href="../mock/struct.MockError.html" title="struct common_error::mock::MockError">MockError</a></h3></section><section id="impl-StackError-for-BoxedError" class="impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#174-182">Source</a><a href="#impl-StackError-for-BoxedError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a> for <a class="struct" href="struct.BoxedError.html" title="struct common_error::ext::BoxedError">BoxedError</a></h3></section><section id="impl-StackError-for-PlainError" class="impl"><a class="src rightside" href="../../src/common_error/ext.rs.html#219-227">Source</a><a href="#impl-StackError-for-PlainError" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.StackError.html" title="trait common_error::ext::StackError">StackError</a> for <a class="struct" href="struct.PlainError.html" title="struct common_error::ext::PlainError">PlainError</a></h3></section></div><script src="../../trait.impl/common_error/ext/trait.StackError.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html> |