pub enum RpcError<E> {
Exception(E),
Remote(RemoteExceptionCode),
InvalidReply,
Dds(Error),
}Expand description
Why a call of the function-call style failed (DDS-RPC 1.0, 7.5.2,
7.11.1.3): an exception the operation raises (E), a remote exception
code the service sent, or a local error.
Variants§
Exception(E)
An exception of the operation.
Remote(RemoteExceptionCode)
A remote exception code other than REMOTE_EX_OK: the operation is
not known or not implemented, an argument was not valid, …
InvalidReply
A reply that answers nothing the call can take.
Dds(Error)
A local error, such as Error::Timeout when no reply came.
Implementations§
Source§impl<E> RpcError<E>
impl<E> RpcError<E>
Sourcepub fn remote_code(&self) -> RemoteExceptionCode
pub fn remote_code(&self) -> RemoteExceptionCode
The remote exception code a service sends for this error:
REMOTE_EX_UNKNOWN_EXCEPTION for all but a RpcError::Remote.
Trait Implementations§
Source§impl<E: Debug> Error for RpcError<E>
impl<E: Debug> Error for RpcError<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> !RefUnwindSafe for RpcError<E>
impl<E> !UnwindSafe for RpcError<E>
impl<E> Forget for RpcError<E>
impl<E> Freeze for RpcError<E>
impl<E> Move for RpcError<E>
impl<E> Send for RpcError<E>
impl<E> Sync for RpcError<E>
impl<E> Unpin for RpcError<E>
impl<E> UnsafeUnpin for RpcError<E>where
E: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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