| <!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="Providing adapters and its implementations."><title>opendal::raw::adapters - 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" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-916cea96.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="opendal" data-themes="" data-resource-suffix="" data-rustdoc-version="1.87.0-nightly (43a2e9d2c 2025-03-17)" data-channel="nightly" data-search-js="search-e7298875.js" data-settings-js="settings-d72f25bb.js"><script src="../../../static.files/storage-d8ac8691.js"></script><script defer="" src="../sidebar-items.js"></script><script defer="" src="../../../static.files/main-fb8c74a8.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../../opendal/index.html"><img src="/img/external/71c0d8847d34b7f8ce3fd204c652c6f9.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../opendal/index.html"><img src="/img/external/71c0d8847d34b7f8ce3fd204c652c6f9.svg" alt="logo"></a><h2><a href="../../../opendal/index.html">opendal</a><span class="version">0.53.3</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module adapters</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#notes" title="Notes">Notes</a></li><li><a href="#available-adapters" title="Available Adapters">Available Adapters</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In opendal::<wbr>raw</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"><div class="rustdoc-breadcrumbs"><a href="../../index.html">opendal</a>::<wbr><a href="../index.html">raw</a></div><h1>Module <span>adapters</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/opendal/raw/adapters/mod.rs.html#18-50">Source</a> </span></div><details class="toggle top-doc" open=""><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Providing adapters and its implementations.</p> |
| <p>Adapters in OpenDAL means services that shares similar behaviors. We use |
| adapter to make those services been implemented more easily. For example, |
| with <a href="kv/trait.Adapter.html" title="trait opendal::raw::adapters::kv::Adapter"><code>kv::Adapter</code></a>, users only need to implement <code>get</code>, <code>set</code> for a service.</p> |
| <h2 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h2> |
| <p>Please import the module instead of its type.</p> |
| <p>For example, use the following:</p> |
| |
| <div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="kw">use </span>opendal::adapters::kv; |
| |
| <span class="kw">impl </span>kv::Adapter <span class="kw">for </span>MyType {}</code></pre></div> |
| <p>Instead of:</p> |
| |
| <div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="kw">use </span>opendal::adapters::kv::Adapter; |
| |
| <span class="kw">impl </span>Adapter <span class="kw">for </span>MyType {}</code></pre></div> |
| <h2 id="available-adapters"><a class="doc-anchor" href="#available-adapters">§</a>Available Adapters</h2> |
| <ul> |
| <li><a href="kv/trait.Adapter.html" title="trait opendal::raw::adapters::kv::Adapter"><code>kv::Adapter</code></a>: Adapter for Key Value Services like <code>redis</code>.</li> |
| <li><a href="typed_kv/trait.Adapter.html" title="trait opendal::raw::adapters::typed_kv::Adapter"><code>typed_kv::Adapter</code></a>: Adapter key value services that in-memory.</li> |
| </ul> |
| </div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="kv/index.html" title="mod opendal::raw::adapters::kv">kv</a></dt><dd>Providing Key Value Adapter for OpenDAL.</dd><dt><a class="mod" href="typed_kv/index.html" title="mod opendal::raw::adapters::typed_kv">typed_<wbr>kv</a></dt><dd>Providing Typed Key Value Adapter for OpenDAL.</dd></dl></section></div></main></body></html> |