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 88af31d commit 98b4bc1Copy full SHA for 98b4bc1
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
@@ -48,9 +50,10 @@ pub trait KVStore: KVStorePersister {
48
50
/// Returns a [`Read`] for the given `namespace` and `key` from which [`Readable`]s may be
49
51
/// read.
52
///
- /// Returns an `Err` if the given `key` could not be found in the given `namespace`.
53
+ /// Returns an [`ErrorKind::NotFound`] if the given `key` could not be found in the given `namespace`.
54
55
/// [`Readable`]: lightning::util::ser::Readable
56
+ /// [`ErrorKind::NotFound`]: std::io::ErrorKind::NotFound
57
fn read(&self, namespace: &str, key: &str) -> std::io::Result<Self::Reader>;
58
/// Persists the given data under the given `key`.
59
0 commit comments