Enum relay_common::ParseDsnError
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§
§impl Debug for ParseDsnError
impl Debug for ParseDsnError
§impl Display for ParseDsnError
impl Display for ParseDsnError
§impl Error for ParseDsnError
impl Error for ParseDsnError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<ParseProjectIdError> for ParseDsnError
impl From<ParseProjectIdError> for ParseDsnError
§fn from(source: ParseProjectIdError) -> ParseDsnError
fn from(source: ParseProjectIdError) -> ParseDsnError
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