#[repr(u8)]pub enum MismatchExplanation {
UnknownService {
closest: Option<Cow<'static, str>>,
},
UnknownMethod {
service: Cow<'static, str>,
closest: Option<Cow<'static, str>>,
},
SignatureMismatch {
service: Cow<'static, str>,
method: Cow<'static, str>,
expected: MethodDetail,
},
}Expand description
Explanation of why a method call mismatched.
Variants§
UnknownService
Service doesn’t exist.
UnknownMethod
Service exists but method doesn’t.
SignatureMismatch
Method exists but signature differs.
The expected field contains the server’s method signature.
Compare with the client’s signature to diagnose the mismatch.
Trait Implementations§
Source§impl Clone for MismatchExplanation
impl Clone for MismatchExplanation
Source§fn clone(&self) -> MismatchExplanation
fn clone(&self) -> MismatchExplanation
Returns a duplicate of the value. Read more
1.0.0 · 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 MismatchExplanation
impl Debug for MismatchExplanation
Auto Trait Implementations§
impl Freeze for MismatchExplanation
impl RefUnwindSafe for MismatchExplanation
impl Send for MismatchExplanation
impl Sync for MismatchExplanation
impl Unpin for MismatchExplanation
impl UnwindSafe for MismatchExplanation
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