summaryrefslogtreecommitdiffstats
path: root/store/src/backend/mod.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-06 14:15:10 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-06 14:15:10 +0100
commitd183e12a3231e4c505f5f2cf48b6c1f881ad258a (patch)
treeaffb4e4c0acc3bce3d14adba627f5193c166bc32 /store/src/backend/mod.rs
parentc8eb94375a38e5606441a9e86d402442662ffb02 (diff)
openpgp: Rename ComponentBinding to ComponentBundle, etc.
- Likewise KeyBinding, UserIDBinding, UserAttributeBinding, UnknownBinding, etc. - Reason: a self-signature on a component is a binding, but revocations and TPSes are not bindings. - Consistently call collections of components and associated signatures bundles now. Likewise for fields, methods. - Fixes #425.
Diffstat (limited to 'store/src/backend/mod.rs')
-rw-r--r--store/src/backend/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/store/src/backend/mod.rs b/store/src/backend/mod.rs
index 412011b1..8141a965 100644
--- a/store/src/backend/mod.rs
+++ b/store/src/backend/mod.rs
@@ -414,7 +414,7 @@ impl node::mapping::Server for MappingServer {
mut results: node::mapping::IterResults)
-> Promise<(), capnp::Error> {
bind_results!(results);
- let iter = BindingIterServer::new(self.c.clone(), self.id);
+ let iter = BundleIterServer::new(self.c.clone(), self.id);
pry!(pry!(results.get().get_result()).set_ok(
node::binding_iter::ToClient::new(iter).into_client::<capnp_rpc::Server>()));
Promise::ok(())
@@ -1167,19 +1167,19 @@ impl node::mapping_iter::Server for MappingIterServer {
}
}
-struct BindingIterServer {
+struct BundleIterServer {
c: Rc<Connection>,
mapping_id: ID,
n: ID,
}
-impl BindingIterServer {
+impl BundleIterServer {
fn new(c: Rc<Connection>, mapping_id: ID) -> Self {
- BindingIterServer{c: c, mapping_id: mapping_id, n: ID::null()}
+ BundleIterServer{c: c, mapping_id: mapping_id, n: ID::null()}
}
}
-impl node::binding_iter::Server for BindingIterServer {
+impl node::binding_iter::Server for BundleIterServer {
fn next(&mut self,
_: node::binding_iter::NextParams,
mut results: node::binding_iter::NextResults)