summaryrefslogtreecommitdiff
path: root/wpa-psk
diff options
context:
space:
mode:
Diffstat (limited to 'wpa-psk')
-rw-r--r--wpa-psk/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa-psk/src/lib.rs b/wpa-psk/src/lib.rs
index 56bbf11..5acf8e5 100644
--- a/wpa-psk/src/lib.rs
+++ b/wpa-psk/src/lib.rs
@@ -26,6 +26,7 @@
//! ```
#![forbid(unsafe_code)]
+#![deny(missing_docs)]
use std::{error::Error, fmt::Display};
@@ -59,9 +60,12 @@ impl<'a> TryFrom<&'a str> for Ssid<'a> {
}
}
+/// SSID validation error.
#[derive(Debug, PartialEq, Eq)]
pub enum ValidateSsidError {
+ /// SSID is too short.
TooShort,
+ /// SSID is too long.
TooLong,
}
@@ -111,10 +115,14 @@ impl Display for Passphrase<'_> {
}
}
+/// Passphrase validation error.
#[derive(Debug, PartialEq, Eq)]
pub enum ValidatePassphraseError {
+ /// Passphrase is too short.
TooShort,
+ /// Passphrase is too long.
TooLong,
+ /// Passphrase contains a invalid byte.
InvalidByte,
}
Generated by cgit. See skreutz.com for my tech blog and contact information.