pub enum ParseDsnError {
InvalidUrl,
InvalidScheme,
NoUsername,
NoProjectId,
InvalidProjectId(ParseProjectIdError),
}
Expand description
Represents a dsn url parsing error.
Variants§
InvalidUrl
raised on completely invalid urls
InvalidScheme
raised the scheme is invalid / unsupported.
NoUsername
raised if the username (public key) portion is missing.
NoProjectId
raised the project is is missing (first path component)
InvalidProjectId(ParseProjectIdError)
raised the project id is invalid.
Trait Implementations§
Source§impl Debug for ParseDsnError
impl Debug for ParseDsnError
Source§impl Display for ParseDsnError
impl Display for ParseDsnError
Source§impl Error for ParseDsnError
impl Error for ParseDsnError
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 From<ParseProjectIdError> for ParseDsnError
impl From<ParseProjectIdError> for ParseDsnError
Source§fn from(source: ParseProjectIdError) -> Self
fn from(source: ParseProjectIdError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseDsnError
impl RefUnwindSafe for ParseDsnError
impl Send for ParseDsnError
impl Sync for ParseDsnError
impl Unpin for ParseDsnError
impl UnwindSafe for ParseDsnError
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