We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
io
io::KVStore
1 parent 567fd02 commit fa6f0d9Copy full SHA for fa6f0d9
src/io/mod.rs
@@ -1,3 +1,5 @@
1
+//! Objects and traits for data persistence.
2
+
3
pub(crate) mod fs_store;
4
pub(crate) mod utils;
5
@@ -52,9 +54,10 @@ pub trait KVStore: KVStorePersister {
52
54
/// Returns a [`Read`] for the given `namespace` and `key` from which [`Readable`]s may be
53
55
/// read.
56
///
- /// Returns an `Err` if the given `key` could not be found in the given `namespace`.
57
+ /// Returns an [`ErrorKind::NotFound`] if the given `key` could not be found in the given `namespace`.
58
59
/// [`Readable`]: lightning::util::ser::Readable
60
+ /// [`ErrorKind::NotFound`]: std::io::ErrorKind::NotFound
61
fn read(&self, namespace: &str, key: &str) -> std::io::Result<Self::Reader>;
62
/// Persists the given data under the given `key`.
63
0 commit comments