pub enum DispatcherError<E> {
TransportError(E),
InvalidMessageHeader(DecodeError),
UnrequestedResponse(u32),
InvalidResponseOrdinal {
expected: u64,
actual: u64,
},
}
Expand description
Errors that can be produced by FIDL client and server dispatchers.
Variants§
TransportError(E)
The underlying transport encountered an error.
InvalidMessageHeader(DecodeError)
The dispatcher received a message with an invalid protocol header.
UnrequestedResponse(u32)
The dispatcher received a response for a transaction which did not occur.
InvalidResponseOrdinal
The dispatcher received a response with the wrong ordinal for the transaction.
Trait Implementations§
Source§impl<E: Debug> Debug for DispatcherError<E>
impl<E: Debug> Debug for DispatcherError<E>
Source§impl<E> Display for DispatcherError<E>where
E: Display,
impl<E> Display for DispatcherError<E>where
E: Display,
Source§impl<E> Error for DispatcherError<E>
impl<E> Error for DispatcherError<E>
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()
Auto Trait Implementations§
impl<E> Freeze for DispatcherError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DispatcherError<E>where
E: RefUnwindSafe,
impl<E> Send for DispatcherError<E>where
E: Send,
impl<E> Sync for DispatcherError<E>where
E: Sync,
impl<E> Unpin for DispatcherError<E>where
E: Unpin,
impl<E> UnwindSafe for DispatcherError<E>where
E: UnwindSafe,
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