pub enum ParseErrorKind {
Empty,
InvalidUri,
UnsupportedScheme,
LimitExceeded,
}Expand description
Stable error code for parser failures.
Mirrors the ErrorCode shape used by the language drivers so that
downstream wrappers can map 1:1 without information loss.
Variants§
Empty
The input was empty.
InvalidUri
url::Url rejected the string, or a transport-specific
invariant (missing host, empty cluster entry, bad port…) was
violated.
UnsupportedScheme
The scheme is not in the documented vocabulary.
LimitExceeded
A DoS guardrail in ConnStringLimits was tripped.
message carries the limit name + the offending value so
downstream wrappers can surface the structured detail.
Implementations§
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
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 ParseErrorKind
impl Debug for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
Source§fn eq(&self, other: &ParseErrorKind) -> bool
fn eq(&self, other: &ParseErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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