pub enum DatabaseUrlError {
EmptyUrl,
EmptyScheme,
EmptyHost,
EmptyDsn,
ControlCharacter,
InvalidScheme,
InvalidPort,
MissingScheme,
}Expand description
Error returned by database URL primitives.
Variants§
EmptyUrl
URL text was empty.
EmptyScheme
URL scheme was empty.
EmptyHost
Host text was empty.
EmptyDsn
DSN text was empty.
ControlCharacter
Text contained a control character.
InvalidScheme
Scheme text was malformed.
InvalidPort
Port was zero or malformed.
MissingScheme
URL text did not contain a scheme.
Trait Implementations§
Source§impl Clone for DatabaseUrlError
impl Clone for DatabaseUrlError
Source§fn clone(&self) -> DatabaseUrlError
fn clone(&self) -> DatabaseUrlError
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 DatabaseUrlError
impl Debug for DatabaseUrlError
Source§impl Display for DatabaseUrlError
impl Display for DatabaseUrlError
Source§impl Error for DatabaseUrlError
impl Error for DatabaseUrlError
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 DatabaseUrlError
impl PartialEq for DatabaseUrlError
Source§fn eq(&self, other: &DatabaseUrlError) -> bool
fn eq(&self, other: &DatabaseUrlError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DatabaseUrlError
impl Eq for DatabaseUrlError
impl StructuralPartialEq for DatabaseUrlError
Auto Trait Implementations§
impl Freeze for DatabaseUrlError
impl RefUnwindSafe for DatabaseUrlError
impl Send for DatabaseUrlError
impl Sync for DatabaseUrlError
impl Unpin for DatabaseUrlError
impl UnsafeUnpin for DatabaseUrlError
impl UnwindSafe for DatabaseUrlError
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