pub enum UrnParseError {
WrongSegmentCount(usize),
InvalidScheme(String),
InvalidNid(String),
EmptySourceId,
InvalidSourceId(String),
EmptyName,
}Expand description
Errors that can occur when parsing a secret URN string.
Variants§
WrongSegmentCount(usize)
InvalidScheme(String)
InvalidNid(String)
EmptySourceId
InvalidSourceId(String)
EmptyName
Trait Implementations§
Source§impl Debug for UrnParseError
impl Debug for UrnParseError
Source§impl Display for UrnParseError
impl Display for UrnParseError
Source§impl Error for UrnParseError
impl Error for UrnParseError
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 UrnParseError
impl PartialEq for UrnParseError
impl StructuralPartialEq for UrnParseError
Auto Trait Implementations§
impl Freeze for UrnParseError
impl RefUnwindSafe for UrnParseError
impl Send for UrnParseError
impl Sync for UrnParseError
impl Unpin for UrnParseError
impl UnsafeUnpin for UrnParseError
impl UnwindSafe for UrnParseError
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