mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-13 00:42:14 +00:00
289 lines
59 KiB
HTML
289 lines
59 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="Foundational trait for storage services."><title>Service in object_store - 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-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="object_store" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-f7c3ffd8.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"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[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="#">Service</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../object_store/index.html">object_<wbr>store</a><span class="version">1.3.0-alpha.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Service</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#operations" title="Operations">Operations</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Copier" title="Copier">Copier</a></li><li><a href="#associatedtype.Deleter" title="Deleter">Deleter</a></li><li><a href="#associatedtype.Lister" title="Lister">Lister</a></li><li><a href="#associatedtype.Reader" title="Reader">Reader</a></li><li><a href="#associatedtype.Writer" title="Writer">Writer</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.capability" title="capability">capability</a></li><li><a href="#tymethod.copy" title="copy">copy</a></li><li><a href="#tymethod.create_dir" title="create_dir">create_dir</a></li><li><a href="#tymethod.delete" title="delete">delete</a></li><li><a href="#tymethod.info" title="info">info</a></li><li><a href="#tymethod.list" title="list">list</a></li><li><a href="#tymethod.presign" title="presign">presign</a></li><li><a href="#tymethod.read" title="read">read</a></li><li><a href="#tymethod.rename" title="rename">rename</a></li><li><a href="#tymethod.stat" title="stat">stat</a></li><li><a href="#tymethod.write" title="write">write</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Service-for-()" title="()">()</a></li><li><a href="#impl-Service-for-Arc%3CT%3E" title="Arc<T>">Arc<T></a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate object_<wbr>store</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" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">object_store</a></div><h1>Trait <span class="trait">Service</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Service:
|
||
<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>
|
||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>
|
||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>
|
||
+ 'static {
|
||
type <a href="#associatedtype.Reader" class="associatedtype">Reader</a>: <a class="trait" href="layers/mock/trait.Read.html" title="trait object_store::layers::mock::Read">Read</a>;
|
||
type <a href="#associatedtype.Writer" class="associatedtype">Writer</a>: <a class="trait" href="layers/mock/trait.Write.html" title="trait object_store::layers::mock::Write">Write</a>;
|
||
type <a href="#associatedtype.Lister" class="associatedtype">Lister</a>: <a class="trait" href="layers/mock/trait.List.html" title="trait object_store::layers::mock::List">List</a>;
|
||
type <a href="#associatedtype.Deleter" class="associatedtype">Deleter</a>: <a class="trait" href="layers/mock/trait.Delete.html" title="trait object_store::layers::mock::Delete">Delete</a>;
|
||
type <a href="#associatedtype.Copier" class="associatedtype">Copier</a>: <a class="trait" href="layers/mock/trait.Copy.html" title="trait object_store::layers::mock::Copy">Copy</a>;
|
||
|
||
// Required methods
|
||
fn <a href="#tymethod.info" class="fn">info</a>(&self) -> <a class="struct" href="struct.ServiceInfo.html" title="struct object_store::ServiceInfo">ServiceInfo</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.capability" class="fn">capability</a>(&self) -> Capability;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.create_dir" class="fn">create_dir</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpCreateDir,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpCreateDir, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.stat" class="fn">stat</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpStat,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpStat, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.read" class="fn">read</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpRead.html" title="struct object_store::layers::mock::OpRead">OpRead</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Reader" title="type object_store::Service::Reader">Reader</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.write" class="fn">write</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpWrite.html" title="struct object_store::layers::mock::OpWrite">OpWrite</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Writer" title="type object_store::Service::Writer">Writer</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.delete" class="fn">delete</a>(&self, ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Deleter" title="type object_store::Service::Deleter">Deleter</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.list" class="fn">list</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpList.html" title="struct object_store::layers::mock::OpList">OpList</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Lister" title="type object_store::Service::Lister">Lister</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.copy" class="fn">copy</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
from: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
to: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpCopy.html" title="struct object_store::layers::mock::OpCopy">OpCopy</a>,
|
||
opts: OpCopier,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Copier" title="type object_store::Service::Copier">Copier</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.rename" class="fn">rename</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
from: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
to: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpRename,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpRename, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.presign" class="fn">presign</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpPresign,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpPresign, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend;
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Foundational trait for storage services.</p>
|
||
<p>Every storage service (or backend) in OpenDAL implements <a href="trait.Service.html" title="trait object_store::Service"><code>Service</code></a>. Services
|
||
and layers must implement every operation in this trait and declare their
|
||
capabilities. This allows callers to detect unsupported operations.</p>
|
||
<h2 id="operations"><a class="doc-anchor" href="#operations">§</a>Operations</h2>
|
||
<ul>
|
||
<li>An operator normalizes paths before passing them to a <code>Service</code>. Relative to
|
||
the configured <code>root</code>:
|
||
<ul>
|
||
<li><code>/</code> represents the root.</li>
|
||
<li>A path ending with <code>/</code> represents a directory.</li>
|
||
<li>Any other path represents a file.</li>
|
||
</ul>
|
||
</li>
|
||
<li>Services report their supported operation set through <a href="trait.Service.html#tymethod.capability" title="method object_store::Service::capability"><code>Service::capability</code></a>.</li>
|
||
<li>The <a href="struct.OperationContext.html" title="struct object_store::OperationContext"><code>OperationContext</code></a> carries layer-composed runtime resources for each
|
||
operation.</li>
|
||
</ul>
|
||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Reader" class="method"><h4 class="code-header">type <a href="#associatedtype.Reader" class="associatedtype">Reader</a>: <a class="trait" href="layers/mock/trait.Read.html" title="trait object_store::layers::mock::Read">Read</a></h4></section></summary><div class="docblock"><p>Reader returned by <code>read</code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Writer" class="method"><h4 class="code-header">type <a href="#associatedtype.Writer" class="associatedtype">Writer</a>: <a class="trait" href="layers/mock/trait.Write.html" title="trait object_store::layers::mock::Write">Write</a></h4></section></summary><div class="docblock"><p>Writer returned by <code>write</code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Lister" class="method"><h4 class="code-header">type <a href="#associatedtype.Lister" class="associatedtype">Lister</a>: <a class="trait" href="layers/mock/trait.List.html" title="trait object_store::layers::mock::List">List</a></h4></section></summary><div class="docblock"><p>Lister returned by <code>list</code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Deleter" class="method"><h4 class="code-header">type <a href="#associatedtype.Deleter" class="associatedtype">Deleter</a>: <a class="trait" href="layers/mock/trait.Delete.html" title="trait object_store::layers::mock::Delete">Delete</a></h4></section></summary><div class="docblock"><p>Deleter returned by <code>delete</code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Copier" class="method"><h4 class="code-header">type <a href="#associatedtype.Copier" class="associatedtype">Copier</a>: <a class="trait" href="layers/mock/trait.Copy.html" title="trait object_store::layers::mock::Copy">Copy</a></h4></section></summary><div class="docblock"><p>Copier returned by <code>copy</code>.</p>
|
||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.info" class="method"><h4 class="code-header">fn <a href="#tymethod.info" class="fn">info</a>(&self) -> <a class="struct" href="struct.ServiceInfo.html" title="struct object_store::ServiceInfo">ServiceInfo</a></h4></section></summary><div class="docblock"><p>Return the immutable identity and configuration for this service.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.capability" class="method"><h4 class="code-header">fn <a href="#tymethod.capability" class="fn">capability</a>(&self) -> Capability</h4></section></summary><div class="docblock"><p>Return the capability of this service stack.</p>
|
||
<p>Layers may affect a service’s capabilities, so callers should use this
|
||
value for the current stack instead of assuming the backend’s native
|
||
capability.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.create_dir" class="method"><h4 class="code-header">fn <a href="#tymethod.create_dir" class="fn">create_dir</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpCreateDir,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpCreateDir, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend</h4></section></summary><div class="docblock"><p>Invoke the <code>create</code> operation on the specified path.</p>
|
||
<p>Requires [<code>Capability::create_dir</code>].</p>
|
||
<h5 id="behavior"><a class="doc-anchor" href="#behavior">§</a>Behavior</h5>
|
||
<ul>
|
||
<li><code>path</code> is a normalized directory path.</li>
|
||
<li>Creating an existing directory should succeed.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.stat" class="method"><h4 class="code-header">fn <a href="#tymethod.stat" class="fn">stat</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpStat,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpStat, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend</h4></section></summary><div class="docblock"><p>Invoke the <code>stat</code> operation on the specified path.</p>
|
||
<p>Requires [<code>Capability::stat</code>].</p>
|
||
<h5 id="behavior-1"><a class="doc-anchor" href="#behavior-1">§</a>Behavior</h5>
|
||
<ul>
|
||
<li><code>/</code> means the service root.</li>
|
||
<li>A path ending with <code>/</code> stats a directory.</li>
|
||
<li>Returned metadata must set <code>mode</code> and <code>content_length</code>.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.read" class="method"><h4 class="code-header">fn <a href="#tymethod.read" class="fn">read</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpRead.html" title="struct object_store::layers::mock::OpRead">OpRead</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Reader" title="type object_store::Service::Reader">Reader</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section></summary><div class="docblock"><p>Invoke the <code>read</code> operation on the specified path.</p>
|
||
<p>Requires [<code>Capability::read</code>].</p>
|
||
<h5 id="behavior-2"><a class="doc-anchor" href="#behavior-2">§</a>Behavior</h5>
|
||
<ul>
|
||
<li><code>path</code> is a normalized file path.</li>
|
||
<li>Range I/O is handled by the returned reader.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.write" class="method"><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpWrite.html" title="struct object_store::layers::mock::OpWrite">OpWrite</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Writer" title="type object_store::Service::Writer">Writer</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section></summary><div class="docblock"><p>Invoke the <code>write</code> operation on the specified path.</p>
|
||
<p>Requires [<code>Capability::write</code>].</p>
|
||
<h5 id="behavior-3"><a class="doc-anchor" href="#behavior-3">§</a>Behavior</h5>
|
||
<ul>
|
||
<li><code>path</code> is a normalized file path.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete" class="method"><h4 class="code-header">fn <a href="#tymethod.delete" class="fn">delete</a>(&self, ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Deleter" title="type object_store::Service::Deleter">Deleter</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section></summary><div class="docblock"><p>Invoke the <code>delete</code> operation.</p>
|
||
<p>Requires [<code>Capability::delete</code>].</p>
|
||
<h5 id="behavior-4"><a class="doc-anchor" href="#behavior-4">§</a>Behavior</h5>
|
||
<ul>
|
||
<li>The returned deleter handles one or more delete requests.</li>
|
||
<li>Deleting a missing path should succeed.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.list" class="method"><h4 class="code-header">fn <a href="#tymethod.list" class="fn">list</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpList.html" title="struct object_store::layers::mock::OpList">OpList</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Lister" title="type object_store::Service::Lister">Lister</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section></summary><div class="docblock"><p>Invoke the <code>list</code> operation on the specified path.</p>
|
||
<p>Requires [<code>Capability::list</code>].</p>
|
||
<h5 id="behavior-5"><a class="doc-anchor" href="#behavior-5">§</a>Behavior</h5>
|
||
<ul>
|
||
<li><code>path</code> is a normalized directory path or prefix.</li>
|
||
<li>Listing a non-existing directory should return an empty stream.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.copy" class="method"><h4 class="code-header">fn <a href="#tymethod.copy" class="fn">copy</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
from: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
to: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpCopy.html" title="struct object_store::layers::mock::OpCopy">OpCopy</a>,
|
||
opts: OpCopier,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Service.html#associatedtype.Copier" title="type object_store::Service::Copier">Copier</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section></summary><div class="docblock"><p>Invoke the <code>copy</code> operation on the specified <code>from</code> path and <code>to</code> path.</p>
|
||
<p>Requires [<code>Capability::copy</code>].</p>
|
||
<h5 id="behavior-6"><a class="doc-anchor" href="#behavior-6">§</a>Behavior</h5>
|
||
<ul>
|
||
<li><code>from</code> and <code>to</code> are normalized file paths.</li>
|
||
<li>Copying to an existing file should overwrite and truncate it.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.rename" class="method"><h4 class="code-header">fn <a href="#tymethod.rename" class="fn">rename</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
from: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
to: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpRename,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpRename, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend</h4></section></summary><div class="docblock"><p>Invoke the <code>rename</code> operation on the specified <code>from</code> path and <code>to</code> path.</p>
|
||
<p>Requires [<code>Capability::rename</code>].</p>
|
||
<h5 id="behavior-7"><a class="doc-anchor" href="#behavior-7">§</a>Behavior</h5>
|
||
<ul>
|
||
<li><code>from</code> and <code>to</code> are normalized file paths.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.presign" class="method"><h4 class="code-header">fn <a href="#tymethod.presign" class="fn">presign</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpPresign,
|
||
) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpPresign, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>>> + MaybeSend</h4></section></summary><div class="docblock"><p>Invoke the <code>presign</code> operation on the specified path.</p>
|
||
<p>Requires [<code>Capability::presign</code>] and the matching presign operation
|
||
capability.</p>
|
||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></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-Service-for-()" class="impl"><a href="#impl-Service-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h3><div class="docblock"><p>Dummy implementation of service.</p>
|
||
</div></section></summary><div class="impl-items"><section id="associatedtype.Reader-1" class="associatedtype trait-impl"><a href="#associatedtype.Reader-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Reader</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Writer-1" class="associatedtype trait-impl"><a href="#associatedtype.Writer-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Writer</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Lister-1" class="associatedtype trait-impl"><a href="#associatedtype.Lister-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Lister</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Deleter-1" class="associatedtype trait-impl"><a href="#associatedtype.Deleter-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Deleter</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Copier-1" class="associatedtype trait-impl"><a href="#associatedtype.Copier-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Copier</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="method.info" class="method trait-impl"><a href="#method.info" class="anchor">§</a><h4 class="code-header">fn <a class="fn">info</a>(&self) -> <a class="struct" href="struct.ServiceInfo.html" title="struct object_store::ServiceInfo">ServiceInfo</a></h4></section><section id="method.capability" class="method trait-impl"><a href="#method.capability" class="anchor">§</a><h4 class="code-header">fn <a class="fn">capability</a>(&self) -> Capability</h4></section><section id="method.create_dir" class="method trait-impl"><a href="#method.create_dir" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">create_dir</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: OpCreateDir,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpCreateDir, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.stat" class="method trait-impl"><a href="#method.stat" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">stat</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: OpStat,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpStat, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.read" class="method trait-impl"><a href="#method.read" class="anchor">§</a><h4 class="code-header">fn <a class="fn">read</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: <a class="struct" href="layers/mock/struct.OpRead.html" title="struct object_store::layers::mock::OpRead">OpRead</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a>>::<a class="associatedtype" href="trait.Service.html#associatedtype.Reader" title="type object_store::Service::Reader">Reader</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.write" class="method trait-impl"><a href="#method.write" class="anchor">§</a><h4 class="code-header">fn <a class="fn">write</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: <a class="struct" href="layers/mock/struct.OpWrite.html" title="struct object_store::layers::mock::OpWrite">OpWrite</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a>>::<a class="associatedtype" href="trait.Service.html#associatedtype.Writer" title="type object_store::Service::Writer">Writer</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.delete" class="method trait-impl"><a href="#method.delete" class="anchor">§</a><h4 class="code-header">fn <a class="fn">delete</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a>>::<a class="associatedtype" href="trait.Service.html#associatedtype.Deleter" title="type object_store::Service::Deleter">Deleter</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.list" class="method trait-impl"><a href="#method.list" class="anchor">§</a><h4 class="code-header">fn <a class="fn">list</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: <a class="struct" href="layers/mock/struct.OpList.html" title="struct object_store::layers::mock::OpList">OpList</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a>>::<a class="associatedtype" href="trait.Service.html#associatedtype.Lister" title="type object_store::Service::Lister">Lister</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.copy" class="method trait-impl"><a href="#method.copy" class="anchor">§</a><h4 class="code-header">fn <a class="fn">copy</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: <a class="struct" href="layers/mock/struct.OpCopy.html" title="struct object_store::layers::mock::OpCopy">OpCopy</a>,
|
||
_: OpCopier,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a>>::<a class="associatedtype" href="trait.Service.html#associatedtype.Copier" title="type object_store::Service::Copier">Copier</a>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.rename" class="method trait-impl"><a href="#method.rename" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">rename</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: OpRename,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpRename, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.presign" class="method trait-impl"><a href="#method.presign" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">presign</a>(
|
||
&self,
|
||
_: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
_: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_: OpPresign,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpPresign, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Service-for-Arc%3CT%3E" class="impl"><a href="#impl-Service-for-Arc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</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><div class="where">where
|
||
T: ServiceDyn + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3><div class="docblock"><p>Implement <code>Service</code> for type-erased services so they use the same API.</p>
|
||
</div></section></summary><div class="impl-items"><section id="associatedtype.Reader-2" class="associatedtype trait-impl"><a href="#associatedtype.Reader-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Reader</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.ReadDyn.html" title="trait object_store::layers::mock::ReadDyn">ReadDyn</a>></h4></section><section id="associatedtype.Writer-2" class="associatedtype trait-impl"><a href="#associatedtype.Writer-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Writer</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.WriteDyn.html" title="trait object_store::layers::mock::WriteDyn">WriteDyn</a>></h4></section><section id="associatedtype.Lister-2" class="associatedtype trait-impl"><a href="#associatedtype.Lister-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Lister</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.ListDyn.html" title="trait object_store::layers::mock::ListDyn">ListDyn</a>></h4></section><section id="associatedtype.Deleter-2" class="associatedtype trait-impl"><a href="#associatedtype.Deleter-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Deleter</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.DeleteDyn.html" title="trait object_store::layers::mock::DeleteDyn">DeleteDyn</a>></h4></section><section id="associatedtype.Copier-2" class="associatedtype trait-impl"><a href="#associatedtype.Copier-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Copier</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.CopyDyn.html" title="trait object_store::layers::mock::CopyDyn">CopyDyn</a>></h4></section><section id="method.info-1" class="method trait-impl"><a href="#method.info-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">info</a>(&self) -> <a class="struct" href="struct.ServiceInfo.html" title="struct object_store::ServiceInfo">ServiceInfo</a></h4></section><section id="method.capability-1" class="method trait-impl"><a href="#method.capability-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">capability</a>(&self) -> Capability</h4></section><section id="method.create_dir-1" class="method trait-impl"><a href="#method.create_dir-1" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">create_dir</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpCreateDir,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpCreateDir, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.stat-1" class="method trait-impl"><a href="#method.stat-1" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">stat</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpStat,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpStat, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.read-1" class="method trait-impl"><a href="#method.read-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">read</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpRead.html" title="struct object_store::layers::mock::OpRead">OpRead</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.ReadDyn.html" title="trait object_store::layers::mock::ReadDyn">ReadDyn</a>>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.write-1" class="method trait-impl"><a href="#method.write-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">write</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpWrite.html" title="struct object_store::layers::mock::OpWrite">OpWrite</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.WriteDyn.html" title="trait object_store::layers::mock::WriteDyn">WriteDyn</a>>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.delete-1" class="method trait-impl"><a href="#method.delete-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">delete</a>(&self, ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.DeleteDyn.html" title="trait object_store::layers::mock::DeleteDyn">DeleteDyn</a>>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.list-1" class="method trait-impl"><a href="#method.list-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">list</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpList.html" title="struct object_store::layers::mock::OpList">OpList</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.ListDyn.html" title="trait object_store::layers::mock::ListDyn">ListDyn</a>>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.copy-1" class="method trait-impl"><a href="#method.copy-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">copy</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
from: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
to: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: <a class="struct" href="layers/mock/struct.OpCopy.html" title="struct object_store::layers::mock::OpCopy">OpCopy</a>,
|
||
opts: OpCopier,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.CopyDyn.html" title="trait object_store::layers::mock::CopyDyn">CopyDyn</a>>, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.rename-1" class="method trait-impl"><a href="#method.rename-1" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">rename</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
from: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
to: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpRename,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpRename, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section><section id="method.presign-1" class="method trait-impl"><a href="#method.presign-1" class="anchor">§</a><h4 class="code-header">async fn <a class="fn">presign</a>(
|
||
&self,
|
||
ctx: &<a class="struct" href="struct.OperationContext.html" title="struct object_store::OperationContext">OperationContext</a>,
|
||
path: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
args: OpPresign,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><RpPresign, <a class="struct" href="struct.Error.html" title="struct object_store::Error">Error</a>></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><div class="negative-marker"></div><details class="toggle implementors-toggle"><summary><section id="impl-Service-for-MockService" class="impl"><a class="src rightside" href="../src/object_store/layers/mock.rs.html#93-200">Source</a><a href="#impl-Service-for-MockService" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a> for <a class="struct" href="layers/mock/struct.MockService.html" title="struct object_store::layers::mock::MockService">MockService</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Reader-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/layers/mock.rs.html#94">Source</a><a href="#associatedtype.Reader-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Reader" class="associatedtype">Reader</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.ReadDyn.html" title="trait object_store::layers::mock::ReadDyn">ReadDyn</a>></h4></section><section id="associatedtype.Writer-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/layers/mock.rs.html#95">Source</a><a href="#associatedtype.Writer-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Writer" class="associatedtype">Writer</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.WriteDyn.html" title="trait object_store::layers::mock::WriteDyn">WriteDyn</a>></h4></section><section id="associatedtype.Lister-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/layers/mock.rs.html#96">Source</a><a href="#associatedtype.Lister-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Lister" class="associatedtype">Lister</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.ListDyn.html" title="trait object_store::layers::mock::ListDyn">ListDyn</a>></h4></section><section id="associatedtype.Deleter-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/layers/mock.rs.html#97">Source</a><a href="#associatedtype.Deleter-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Deleter" class="associatedtype">Deleter</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.DeleteDyn.html" title="trait object_store::layers::mock::DeleteDyn">DeleteDyn</a>></h4></section><section id="associatedtype.Copier-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/layers/mock.rs.html#98">Source</a><a href="#associatedtype.Copier-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Copier" class="associatedtype">Copier</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="layers/mock/trait.CopyDyn.html" title="trait object_store::layers::mock::CopyDyn">CopyDyn</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Service-for-SecureFsBackend" class="impl"><a class="src rightside" href="../src/object_store/secure_fs.rs.html#202-323">Source</a><a href="#impl-Service-for-SecureFsBackend" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Service.html" title="trait object_store::Service">Service</a> for <a class="struct" href="secure_fs/struct.SecureFsBackend.html" title="struct object_store::secure_fs::SecureFsBackend">SecureFsBackend</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Reader-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/secure_fs.rs.html#203">Source</a><a href="#associatedtype.Reader-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Reader" class="associatedtype">Reader</a> = <a class="struct" href="layers/mock/struct.StreamReader.html" title="struct object_store::layers::mock::StreamReader">StreamReader</a><<a class="struct" href="secure_fs/struct.SecureFsReader.html" title="struct object_store::secure_fs::SecureFsReader">SecureFsReader</a>></h4></section><section id="associatedtype.Writer-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/secure_fs.rs.html#204">Source</a><a href="#associatedtype.Writer-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Writer" class="associatedtype">Writer</a> = <a class="struct" href="secure_fs/struct.SecureFsWriter.html" title="struct object_store::secure_fs::SecureFsWriter">SecureFsWriter</a></h4></section><section id="associatedtype.Lister-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/secure_fs.rs.html#205">Source</a><a href="#associatedtype.Lister-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Lister" class="associatedtype">Lister</a> = <a class="struct" href="secure_fs/struct.SecureFsLister.html" title="struct object_store::secure_fs::SecureFsLister">SecureFsLister</a></h4></section><section id="associatedtype.Deleter-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/secure_fs.rs.html#206">Source</a><a href="#associatedtype.Deleter-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Deleter" class="associatedtype">Deleter</a> = <a class="struct" href="layers/mock/struct.OneShotDeleter.html" title="struct object_store::layers::mock::OneShotDeleter">OneShotDeleter</a><<a class="struct" href="secure_fs/struct.SecureFsDeleter.html" title="struct object_store::secure_fs::SecureFsDeleter">SecureFsDeleter</a>></h4></section><section id="associatedtype.Copier-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/object_store/secure_fs.rs.html#207">Source</a><a href="#associatedtype.Copier-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Copier" class="associatedtype">Copier</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></div></details></div><script src="../trait.impl/opendal_core/raw/accessor/trait.Service.js" data-ignore-extern-crates="alloc,std" async></script></section></div></main></body></html> |