pub enum LookupPathError {
Empty,
EmptySegment {
input: String,
},
TrailingDot {
input: String,
},
EmptyScopedKey {
scope: String,
input: String,
},
}Expand description
Error raised by ExchangeLookupPath::parse. Aligns with ADR-0016 strict
rejection: ambiguous / malformed paths are reported, never silently coerced.
Variants§
Empty
The whole input was empty.
EmptySegment
A path segment between dots was empty (e.g. body..name).
TrailingDot
The path ended with a trailing dot (e.g. body.).
EmptyScopedKey
The scope prefix was given but no key followed (e.g. header.).
Trait Implementations§
Source§impl Clone for LookupPathError
impl Clone for LookupPathError
Source§fn clone(&self) -> LookupPathError
fn clone(&self) -> LookupPathError
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 LookupPathError
impl Debug for LookupPathError
Source§impl Display for LookupPathError
impl Display for LookupPathError
impl Eq for LookupPathError
Source§impl Error for LookupPathError
impl Error for LookupPathError
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 LookupPathError
impl PartialEq for LookupPathError
Source§fn eq(&self, other: &LookupPathError) -> bool
fn eq(&self, other: &LookupPathError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LookupPathError
Auto Trait Implementations§
impl Freeze for LookupPathError
impl RefUnwindSafe for LookupPathError
impl Send for LookupPathError
impl Sync for LookupPathError
impl Unpin for LookupPathError
impl UnsafeUnpin for LookupPathError
impl UnwindSafe for LookupPathError
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