kanidm/docs/v1.1.0-alpha.7/rustdoc/kanidmd_lib/be/trait.BackendTransaction.html
2023-01-15 23:07:10 +00:00

27 lines
37 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `BackendTransaction` trait in crate `kanidmd_lib`."><meta name="keywords" content="rust, rustlang, rust-lang, BackendTransaction"><title>BackendTransaction in kanidmd_lib::be - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../kanidmd_lib/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../kanidmd_lib/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">BackendTransaction</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.IdlLayerType">IdlLayerType</a></li><li><a href="#associatedtype.RuvType">RuvType</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.get_idlayer">get_idlayer</a></li><li><a href="#tymethod.get_idxmeta_ref">get_idxmeta_ref</a></li><li><a href="#tymethod.get_ruv">get_ruv</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.backup">backup</a></li><li><a href="#method.exists">exists</a></li><li><a href="#method.externalid2uuid">externalid2uuid</a></li><li><a href="#method.filter2idl">filter2idl</a></li><li><a href="#method.name2uuid">name2uuid</a></li><li><a href="#method.search">search</a></li><li><a href="#method.uuid2rdn">uuid2rdn</a></li><li><a href="#method.uuid2spn">uuid2spn</a></li><li><a href="#method.verify">verify</a></li><li><a href="#method.verify_entry_index">verify_entry_index</a></li><li><a href="#method.verify_indexes">verify_indexes</a></li><li><a href="#method.verify_ruv">verify_ruv</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In kanidmd_lib::be</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Trait <a href="../index.html">kanidmd_lib</a>::<wbr><a href="index.html">be</a>::<wbr><a class="trait" href="#">BackendTransaction</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/kanidmd_lib/be/mod.rs.html#191-893">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust trait"><code>pub trait BackendTransaction {
type <a href="#associatedtype.IdlLayerType" class="associatedtype">IdlLayerType</a>: IdlArcSqliteTransaction;
type <a href="#associatedtype.RuvType" class="associatedtype">RuvType</a>: ReplicationUpdateVectorTransaction;
<details class="rustdoc-toggle type-contents-toggle"><summary class="hideme"><span>Show 15 methods</span></summary> fn <a href="#tymethod.get_idlayer" class="fnname">get_idlayer</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.BackendTransaction.html#associatedtype.IdlLayerType" title="type kanidmd_lib::be::BackendTransaction::IdlLayerType">IdlLayerType</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.get_ruv" class="fnname">get_ruv</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.BackendTransaction.html#associatedtype.RuvType" title="type kanidmd_lib::be::BackendTransaction::RuvType">RuvType</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.get_idxmeta_ref" class="fnname">get_idxmeta_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.IdxMeta.html" title="struct kanidmd_lib::be::IdxMeta">IdxMeta</a>;
fn <a href="#method.filter2idl" class="fnname">filter2idl</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filt: &amp;<a class="enum" href="../filter/enum.FilterResolved.html" title="enum kanidmd_lib::filter::FilterResolved">FilterResolved</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thres: <a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.usize.html">usize</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(<a class="enum" href="enum.IdList.html" title="enum kanidmd_lib::be::IdList">IdList</a>, <a class="enum" href="../filter/enum.FilterPlan.html" title="enum kanidmd_lib::filter::FilterPlan">FilterPlan</a>), <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.search" class="fnname">search</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;erl: &amp;<a class="struct" href="struct.Limits.html" title="struct kanidmd_lib::be::Limits">Limits</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filt: &amp;<a class="struct" href="../filter/struct.Filter.html" title="struct kanidmd_lib::filter::Filter">Filter</a>&lt;<a class="struct" href="../filter/struct.FilterValidResolved.html" title="struct kanidmd_lib::filter::FilterValidResolved">FilterValidResolved</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="type" href="../entry/type.EntrySealedCommitted.html" title="type kanidmd_lib::entry::EntrySealedCommitted">EntrySealedCommitted</a>&gt;&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.exists" class="fnname">exists</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;erl: &amp;<a class="struct" href="struct.Limits.html" title="struct kanidmd_lib::be::Limits">Limits</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filt: &amp;<a class="struct" href="../filter/struct.Filter.html" title="struct kanidmd_lib::filter::Filter">Filter</a>&lt;<a class="struct" href="../filter/struct.FilterValidResolved.html" title="struct kanidmd_lib::filter::FilterValidResolved">FilterValidResolved</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.bool.html">bool</a>, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.verify" class="fnname">verify</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt;&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.66.1/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.66.1/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.verify_entry_index" class="fnname">verify_entry_index</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e: &amp;<a class="struct" href="../entry/struct.Entry.html" title="struct kanidmd_lib::entry::Entry">Entry</a>&lt;<a class="struct" href="../entry/struct.EntrySealed.html" title="struct kanidmd_lib::entry::EntrySealed">EntrySealed</a>, <a class="struct" href="../entry/struct.EntryCommitted.html" title="struct kanidmd_lib::entry::EntryCommitted">EntryCommitted</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.verify_indexes" class="fnname">verify_indexes</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt;&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.66.1/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.66.1/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.verify_ruv" class="fnname">verify_ruv</a>(&amp;mut self, results: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt;&gt;) { ... }
<span class="item-spacer"></span> fn <a href="#method.backup" class="fnname">backup</a>(&amp;mut self, dst_path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.name2uuid" class="fnname">name2uuid</a>(&amp;mut self, name: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.externalid2uuid" class="fnname">externalid2uuid</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.str.html">str</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.uuid2spn" class="fnname">uuid2spn</a>(&amp;mut self, uuid: <a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../value/enum.Value.html" title="enum kanidmd_lib::value::Value">Value</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.uuid2rdn" class="fnname">uuid2rdn</a>(&amp;mut self, uuid: <a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt; { ... }
</details>}</code></pre></div><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><section id="associatedtype.IdlLayerType" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#192">source</a><h4 class="code-header">type <a href="#associatedtype.IdlLayerType" class="associatedtype">IdlLayerType</a>: IdlArcSqliteTransaction</h4></section><section id="associatedtype.RuvType" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#195">source</a><h4 class="code-header">type <a href="#associatedtype.RuvType" class="associatedtype">RuvType</a>: ReplicationUpdateVectorTransaction</h4></section></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><section id="tymethod.get_idlayer" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#193">source</a><h4 class="code-header">fn <a href="#tymethod.get_idlayer" class="fnname">get_idlayer</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.BackendTransaction.html#associatedtype.IdlLayerType" title="type kanidmd_lib::be::BackendTransaction::IdlLayerType">IdlLayerType</a></h4></section><section id="tymethod.get_ruv" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#196">source</a><h4 class="code-header">fn <a href="#tymethod.get_ruv" class="fnname">get_ruv</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.BackendTransaction.html#associatedtype.RuvType" title="type kanidmd_lib::be::BackendTransaction::RuvType">RuvType</a></h4></section><section id="tymethod.get_idxmeta_ref" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#198">source</a><h4 class="code-header">fn <a href="#tymethod.get_idxmeta_ref" class="fnname">get_idxmeta_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.IdxMeta.html" title="struct kanidmd_lib::be::IdxMeta">IdxMeta</a></h4></section></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.filter2idl" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#203">source</a><h4 class="code-header">fn <a href="#method.filter2idl" class="fnname">filter2idl</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;filt: &amp;<a class="enum" href="../filter/enum.FilterResolved.html" title="enum kanidmd_lib::filter::FilterResolved">FilterResolved</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;thres: <a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.usize.html">usize</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(<a class="enum" href="enum.IdList.html" title="enum kanidmd_lib::be::IdList">IdList</a>, <a class="enum" href="../filter/enum.FilterPlan.html" title="enum kanidmd_lib::filter::FilterPlan">FilterPlan</a>), <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Recursively apply a filter, transforming into IdLists on the way. This builds a query
execution log, so that it can be examined how an operation proceeded.</p>
</div></details><section id="method.search" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#563">source</a><h4 class="code-header">fn <a href="#method.search" class="fnname">search</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;erl: &amp;<a class="struct" href="struct.Limits.html" title="struct kanidmd_lib::be::Limits">Limits</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;filt: &amp;<a class="struct" href="../filter/struct.Filter.html" title="struct kanidmd_lib::filter::Filter">Filter</a>&lt;<a class="struct" href="../filter/struct.FilterValidResolved.html" title="struct kanidmd_lib::filter::FilterValidResolved">FilterValidResolved</a>&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a>&lt;<a class="type" href="../entry/type.EntrySealedCommitted.html" title="type kanidmd_lib::entry::EntrySealedCommitted">EntrySealedCommitted</a>&gt;&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.exists" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#658">source</a><h4 class="code-header">fn <a href="#method.exists" class="fnname">exists</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;erl: &amp;<a class="struct" href="struct.Limits.html" title="struct kanidmd_lib::be::Limits">Limits</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;filt: &amp;<a class="struct" href="../filter/struct.Filter.html" title="struct kanidmd_lib::filter::Filter">Filter</a>&lt;<a class="struct" href="../filter/struct.FilterValidResolved.html" title="struct kanidmd_lib::filter::FilterValidResolved">FilterValidResolved</a>&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.bool.html">bool</a>, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Given a filter, assert some condition exists.
Basically, this is a specialised case of search, where we dont need to
load any candidates if they match. This is heavily used in uuid
refint and attr uniqueness.</p>
</div></details><section id="method.verify" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#719-721">source</a><h4 class="code-header">fn <a href="#method.verify" class="fnname">verify</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt;&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.66.1/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.66.1/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section><section id="method.verify_entry_index" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#723-795">source</a><h4 class="code-header">fn <a href="#method.verify_entry_index" class="fnname">verify_entry_index</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;e: &amp;<a class="struct" href="../entry/struct.Entry.html" title="struct kanidmd_lib::entry::Entry">Entry</a>&lt;<a class="struct" href="../entry/struct.EntrySealed.html" title="struct kanidmd_lib::entry::EntrySealed">EntrySealed</a>, <a class="struct" href="../entry/struct.EntryCommitted.html" title="struct kanidmd_lib::entry::EntryCommitted">EntryCommitted</a>&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt;</h4></section><section id="method.verify_indexes" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#797-814">source</a><h4 class="code-header">fn <a href="#method.verify_indexes" class="fnname">verify_indexes</a>(&amp;mut self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt;&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/1.66.1/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.u8.html">u8</a>, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/1.66.1/core/alloc/trait.Allocator.html" title="trait core::alloc::Allocator">Allocator</a>,</span></span></code></span></span></span></span></h4></section><section id="method.verify_ruv" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#816-829">source</a><h4 class="code-header">fn <a href="#method.verify_ruv" class="fnname">verify_ruv</a>(&amp;mut self, results: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.ConsistencyError.html" title="enum kanidmd_lib::prelude::ConsistencyError">ConsistencyError</a>&gt;&gt;)</h4></section><section id="method.backup" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#831-876">source</a><h4 class="code-header">fn <a href="#method.backup" class="fnname">backup</a>(&amp;mut self, dst_path: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section><section id="method.name2uuid" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#878-880">source</a><h4 class="code-header">fn <a href="#method.name2uuid" class="fnname">name2uuid</a>(&amp;mut self, name: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section><section id="method.externalid2uuid" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#882-884">source</a><h4 class="code-header">fn <a href="#method.externalid2uuid" class="fnname">externalid2uuid</a>(&amp;mut self, name: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.66.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section><section id="method.uuid2spn" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#886-888">source</a><h4 class="code-header">fn <a href="#method.uuid2spn" class="fnname">uuid2spn</a>(&amp;mut self, uuid: <a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../value/enum.Value.html" title="enum kanidmd_lib::value::Value">Value</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section><section id="method.uuid2rdn" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#890-892">source</a><h4 class="code-header">fn <a href="#method.uuid2rdn" class="fnname">uuid2rdn</a>(&amp;mut self, uuid: <a class="struct" href="../prelude/struct.Uuid.html" title="struct kanidmd_lib::prelude::Uuid">Uuid</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.66.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.66.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.66.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BackendTransaction-for-BackendReadTransaction%3C%27a%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#895-910">source</a><a href="#impl-BackendTransaction-for-BackendReadTransaction%3C%27a%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.BackendTransaction.html" title="trait kanidmd_lib::be::BackendTransaction">BackendTransaction</a> for <a class="struct" href="struct.BackendReadTransaction.html" title="struct kanidmd_lib::be::BackendReadTransaction">BackendReadTransaction</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.IdlLayerType-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.IdlLayerType-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.IdlLayerType" class="associatedtype">IdlLayerType</a> = IdlArcSqliteReadTransaction&lt;'a&gt;</h4></section><section id="associatedtype.RuvType-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.RuvType-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.RuvType" class="associatedtype">RuvType</a> = ReplicationUpdateVectorReadTransaction&lt;'a&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BackendTransaction-for-BackendWriteTransaction%3C%27a%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/be/mod.rs.html#933-948">source</a><a href="#impl-BackendTransaction-for-BackendWriteTransaction%3C%27a%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.BackendTransaction.html" title="trait kanidmd_lib::be::BackendTransaction">BackendTransaction</a> for <a class="struct" href="struct.BackendWriteTransaction.html" title="struct kanidmd_lib::be::BackendWriteTransaction">BackendWriteTransaction</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.IdlLayerType-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.IdlLayerType-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.IdlLayerType" class="associatedtype">IdlLayerType</a> = IdlArcSqliteWriteTransaction&lt;'a&gt;</h4></section><section id="associatedtype.RuvType-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.RuvType-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.RuvType" class="associatedtype">RuvType</a> = ReplicationUpdateVectorWriteTransaction&lt;'a&gt;</h4></section></div></details></div><script src="../../implementors/kanidmd_lib/be/trait.BackendTransaction.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="kanidmd_lib" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.1 (90743e729 2023-01-10)" ></div></body></html>