[docs] Add docs to the 'wallet' module

This commit is contained in:
Steve Myers
2020-12-11 14:10:11 -08:00
parent 1d1d539154
commit 148e8c6088
5 changed files with 14 additions and 7 deletions

View File

@@ -84,10 +84,15 @@ use crate::types::KeychainKind;
/// Errors that can be returned to fail the validation of an address
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum AddressValidatorError {
/// User rejected the address
UserRejected,
/// Network connection error
ConnectionError,
/// Network request timeout error
TimeoutError,
/// Invalid script
InvalidScript,
/// A custom error message
Message(String),
}