Files
greptimedb/cli/trait.Tool.html
2025-12-25 19:26:42 +00:00

12 lines
11 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 `Tool` trait in crate `cli`."><title>Tool in cli - 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="cli" 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="#">Tool</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../cli/index.html">cli</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="#">Tool</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.do_work" title="do_work">do_work</a></li></ul><h3><a href="#implementors">Implementors</a></h3></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" 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">cli</a></div><h1>Trait <span class="trait">Tool</span>&nbsp;<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/lib.rs.html#36-38">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Tool: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> {
// Required method
fn <a href="#tymethod.do_work" class="fn">do_work</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, BoxedError&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;
<span class="where">where Self: 'async_trait,
'life0: 'async_trait</span>;
}</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.do_work" class="method"><a class="src rightside" href="../src/cli/lib.rs.html#37">Source</a><h4 class="code-header">fn <a href="#tymethod.do_work" class="fn">do_work</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 self,
) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, BoxedError&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Tool-for-BenchTableMetadata" class="impl"><a class="src rightside" href="../src/cli/bench.rs.html#124-133">Source</a><a href="#impl-Tool-for-BenchTableMetadata" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="bench/struct.BenchTableMetadata.html" title="struct cli::bench::BenchTableMetadata">BenchTableMetadata</a></h3></section><section id="impl-Tool-for-Export" class="impl"><a class="src rightside" href="../src/cli/data/export.rs.html#599-618">Source</a><a href="#impl-Tool-for-Export" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="data/export/struct.Export.html" title="struct cli::data::export::Export">Export</a></h3></section><section id="impl-Tool-for-Import" class="impl"><a class="src rightside" href="../src/cli/data/import.rs.html#288-299">Source</a><a href="#impl-Tool-for-Import" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="data/import/struct.Import.html" title="struct cli::data::import::Import">Import</a></h3></section><section id="impl-Tool-for-DelKeyTool" class="impl"><a class="src rightside" href="../src/cli/metadata/control/del/key.rs.html#87-94">Source</a><a href="#impl-Tool-for-DelKeyTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/control/del/key/struct.DelKeyTool.html" title="struct cli::metadata::control::del::key::DelKeyTool">DelKeyTool</a></h3></section><section id="impl-Tool-for-DelTableTool" class="impl"><a class="src rightside" href="../src/cli/metadata/control/del/table.rs.html#98-128">Source</a><a href="#impl-Tool-for-DelTableTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/control/del/table/struct.DelTableTool.html" title="struct cli::metadata::control::del::table::DelTableTool">DelTableTool</a></h3></section><section id="impl-Tool-for-GetKeyTool" class="impl"><a class="src rightside" href="../src/cli/metadata/control/get.rs.html#90-118">Source</a><a href="#impl-Tool-for-GetKeyTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/control/get/struct.GetKeyTool.html" title="struct cli::metadata::control::get::GetKeyTool">GetKeyTool</a></h3></section><section id="impl-Tool-for-GetTableTool" class="impl"><a class="src rightside" href="../src/cli/metadata/control/get.rs.html#174-232">Source</a><a href="#impl-Tool-for-GetTableTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/control/get/struct.GetTableTool.html" title="struct cli::metadata::control::get::GetTableTool">GetTableTool</a></h3></section><section id="impl-Tool-for-RepairTool" class="impl"><a class="src rightside" href="../src/cli/metadata/repair.rs.html#126-130">Source</a><a href="#impl-Tool-for-RepairTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/repair/struct.RepairTool.html" title="struct cli::metadata::repair::RepairTool">RepairTool</a></h3></section><section id="impl-Tool-for-MetaInfoTool" class="impl"><a class="src rightside" href="../src/cli/metadata/snapshot.rs.html#233-248">Source</a><a href="#impl-Tool-for-MetaInfoTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/snapshot/struct.MetaInfoTool.html" title="struct cli::metadata::snapshot::MetaInfoTool">MetaInfoTool</a></h3></section><section id="impl-Tool-for-MetaRestoreTool" class="impl"><a class="src rightside" href="../src/cli/metadata/snapshot.rs.html#164-196">Source</a><a href="#impl-Tool-for-MetaRestoreTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/snapshot/struct.MetaRestoreTool.html" title="struct cli::metadata::snapshot::MetaRestoreTool">MetaRestoreTool</a></h3></section><section id="impl-Tool-for-MetaSnapshotTool" class="impl"><a class="src rightside" href="../src/cli/metadata/snapshot.rs.html#92-100">Source</a><a href="#impl-Tool-for-MetaSnapshotTool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Tool.html" title="trait cli::Tool">Tool</a> for <a class="struct" href="metadata/snapshot/struct.MetaSnapshotTool.html" title="struct cli::metadata::snapshot::MetaSnapshotTool">MetaSnapshotTool</a></h3></section></div><script src="../trait.impl/cli/trait.Tool.js" async></script></section></div></main></body></html>