pub enum RoutingHeaderError {
FeatureUnavailable {
feature: Feature,
},
Missing {
header: &'static str,
},
Repeated,
EmptyName,
NonVisibleAscii {
index: usize,
byte: u8,
},
Method(MethodNameError),
}Expand description
Why a request is not routable by header.
Variants§
The negotiated session was never offered the standard routing headers.
Missing
One of the two required headers was absent.
Repeated
A header arrived more than once.
EmptyName
The target name was blank.
NonVisibleAscii
A byte outside the visible-ASCII range reached a header value.
Method(MethodNameError)
The method name was not a well-formed JSON-RPC method.
Trait Implementations§
Source§impl Clone for RoutingHeaderError
impl Clone for RoutingHeaderError
Source§impl Debug for RoutingHeaderError
impl Debug for RoutingHeaderError
Source§impl Display for RoutingHeaderError
impl Display for RoutingHeaderError
impl Eq for RoutingHeaderError
Source§impl Error for RoutingHeaderError
impl Error for RoutingHeaderError
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<MethodNameError> for RoutingHeaderError
impl From<MethodNameError> for RoutingHeaderError
Source§fn from(source: MethodNameError) -> Self
fn from(source: MethodNameError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RoutingHeaderError
impl PartialEq for RoutingHeaderError
impl StructuralPartialEq for RoutingHeaderError
Auto Trait Implementations§
impl Freeze for RoutingHeaderError
impl RefUnwindSafe for RoutingHeaderError
impl Send for RoutingHeaderError
impl Sync for RoutingHeaderError
impl Unpin for RoutingHeaderError
impl UnsafeUnpin for RoutingHeaderError
impl UnwindSafe for RoutingHeaderError
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