pub enum CrossProtocolError {
UnknownDownstream(ProtocolSide),
MethodNotBridged(String, ProtocolSide),
}Expand description
What a cross-protocol codec can refuse.
Variants§
UnknownDownstream(ProtocolSide)
The downstream leg’s protocol is not one this codec speaks. The bridge should never have called it; this is a wiring error.
MethodNotBridged(String, ProtocolSide)
The method on the IR is not one the codec has a rule for.
A bridge that received this returns -32601 Method not found to
the client, naming the method so the operator can see which call
hit the gap.
Trait Implementations§
Source§impl Clone for CrossProtocolError
impl Clone for CrossProtocolError
Source§impl Debug for CrossProtocolError
impl Debug for CrossProtocolError
Source§impl Display for CrossProtocolError
impl Display for CrossProtocolError
impl Eq for CrossProtocolError
Source§impl Error for CrossProtocolError
impl Error for CrossProtocolError
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 CrossProtocolError
impl PartialEq for CrossProtocolError
impl StructuralPartialEq for CrossProtocolError
Auto Trait Implementations§
impl Freeze for CrossProtocolError
impl RefUnwindSafe for CrossProtocolError
impl Send for CrossProtocolError
impl Sync for CrossProtocolError
impl Unpin for CrossProtocolError
impl UnsafeUnpin for CrossProtocolError
impl UnwindSafe for CrossProtocolError
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