File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ //! Objects and traits for data persistence.
2
+
1
3
pub ( crate ) mod fs_store;
2
4
pub ( crate ) mod utils;
3
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.
54
56
///
55
- /// 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`.
56
58
///
57
59
/// [`Readable`]: lightning::util::ser::Readable
60
+ /// [`ErrorKind::NotFound`]: std::io::ErrorKind::NotFound
58
61
fn read ( & self , namespace : & str , key : & str ) -> std:: io:: Result < Self :: Reader > ;
59
62
/// Persists the given data under the given `key`.
60
63
///
You can’t perform that action at this time.
0 commit comments