pub enum RpcError {
Show 15 variants
Codec(String),
PayloadTooLarge {
got: usize,
max: usize,
},
InvalidServiceName(String),
InvalidMethodName(String),
OnewayWithReturn(String),
OnewayWithOutParam {
method: String,
param: String,
},
DuplicateMethod(String),
DuplicateParam {
method: String,
param: String,
},
UnknownExceptionCode(u32),
EmptyService(String),
Timeout,
RemoteException(u32),
DuplicateInstanceName(String),
Dcps(String),
QosProfileNotFound(String),
}Expand description
Collective error for the foundation stage of the DDS-RPC implementation.
Variants§
Codec(String)
XCDR2 encoding/decoding violated the wire format.
PayloadTooLarge
DoS cap for the wire payload exceeded.
InvalidServiceName(String)
The service name is empty or contains invalid characters.
InvalidMethodName(String)
The method name is empty or invalid.
OnewayWithReturn(String)
The method is oneway but has a non-void return.
OnewayWithOutParam
The method is oneway but has out/inout parameters.
DuplicateMethod(String)
Duplicate method names in an interface.
DuplicateParam
Duplicate parameter names in a method.
UnknownExceptionCode(u32)
Unknown RemoteExceptionCode_t discriminator on decode.
EmptyService(String)
Service without methods — no endpoint can be built.
Timeout
Request-reply wait time exceeded (foundation stage C6.1.C).
RemoteException(u32)
The server side returned a RemoteExceptionCode other than Ok.
The value is the raw discriminator — the caller can use
crate::common_types::RemoteExceptionCode::from_u32 to map it into
the enum.
DuplicateInstanceName(String)
A service_instance_name assigned twice on the same participant.
Dcps(String)
Generic DCPS call error (topic creation, writer create, etc.).
QosProfileNotFound(String)
QoS profile not found in the DdsXml library.
Implementations§
Trait Implementations§
impl Eq for RpcError
Source§impl Error for RpcError
Available on crate feature std only.
impl Error for RpcError
std only.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()