pub enum TrustRootError {
Empty,
TooLong {
max: usize,
actual: usize,
},
InvalidDomain {
domain: String,
reason: &'static str,
},
InvalidIpAddress {
value: String,
reason: &'static str,
},
InvalidPort {
value: String,
reason: &'static str,
},
LabelTooLong {
label: String,
max: usize,
actual: usize,
},
InvalidChar {
char: char,
position: usize,
},
}Expand description
Errors for trust root parsing.
Variants§
Empty
Trust root is empty
TooLong
Trust root exceeds maximum length
InvalidDomain
Invalid domain name
InvalidIpAddress
Invalid IP address
InvalidPort
Invalid port number
LabelTooLong
DNS label too long
Fields
InvalidChar
Invalid character in domain
Trait Implementations§
Source§impl Clone for TrustRootError
impl Clone for TrustRootError
Source§fn clone(&self) -> TrustRootError
fn clone(&self) -> TrustRootError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustRootError
impl Debug for TrustRootError
Source§impl Display for TrustRootError
impl Display for TrustRootError
impl Eq for TrustRootError
Source§impl Error for TrustRootError
impl Error for TrustRootError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TrustRootError
impl PartialEq for TrustRootError
impl StructuralPartialEq for TrustRootError
Auto Trait Implementations§
impl Freeze for TrustRootError
impl RefUnwindSafe for TrustRootError
impl Send for TrustRootError
impl Sync for TrustRootError
impl Unpin for TrustRootError
impl UnsafeUnpin for TrustRootError
impl UnwindSafe for TrustRootError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more