pub enum RpcDispatchError {
Model(String),
UnknownOperation(String),
UnsupportedParameterType(String),
BadRequest(String),
Rpc(String),
RemoteException(u32),
OperationException {
operation: String,
exception: String,
fields_xml: String,
},
Timeout,
}Expand description
Dispatch error.
Variants§
Model(String)
The config-named IDL file’s interfaces did not build (an
unresolved base, an inheritance cycle).
UnknownOperation(String)
No operation of any configured interface has this name.
UnsupportedParameterType(String)
Building a synthetic CompleteTypeObject refused a parameter’s
type — XTypes 1.3 §7.3 has no TypeIdentifier for it, or it is
recursive.
BadRequest(String)
The request body did not convert to the In struct’s shape.
Rpc(String)
The Requester/DCPS layer refused the call.
RemoteException(u32)
The remote side reported a foundation-level RemoteExceptionCode != Ok (Spec §7.6.2) — a protocol-level refusal (e.g. the
Replier itself does not recognize the discriminator), not a
declared IDL raises exception (see
Self::OperationException).
OperationException
The reply’s Result union (Spec §7.5.1.1.5) selected a declared
raises exception’s case, not dds::RETCODE_OK — the call
reached the service and it refused this request specifically.
Fields
Timeout
The call timed out waiting for a reply.
Trait Implementations§
Source§impl Debug for RpcDispatchError
impl Debug for RpcDispatchError
Source§impl Display for RpcDispatchError
impl Display for RpcDispatchError
Source§impl Error for RpcDispatchError
impl Error for RpcDispatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()