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
Sammelfehler fuer die Foundation-Stufe der DDS-RPC-Implementierung.
Variants§
Codec(String)
XCDR2-Encoding/Decoding hat das Wire-Format verletzt.
PayloadTooLarge
DoS-Cap fuer Wire-Payload ueberschritten.
InvalidServiceName(String)
Service-Name ist leer oder enthaelt ungueltige Zeichen.
InvalidMethodName(String)
Methoden-Name ist leer oder ungueltig.
OnewayWithReturn(String)
Methode ist oneway, hat aber ein non-void Return.
OnewayWithOutParam
Methode ist oneway, hat aber out/inout-Parameter.
DuplicateMethod(String)
Doppelte Methoden-Namen in einem interface.
DuplicateParam
Doppelte Parameter-Namen in einer Methode.
UnknownExceptionCode(u32)
Unbekannter RemoteExceptionCode_t-Diskriminator beim Decode.
EmptyService(String)
Service ohne Methoden — kein Endpoint kann gebaut werden.
Timeout
Request-Reply-Wartezeit ueberschritten (Foundation-Stufe C6.1.C).
RemoteException(u32)
Server-Side hat eine RemoteExceptionCode ungleich Ok zurueckgegeben.
Der Wert ist der raw Diskriminator — Caller kann
crate::common_types::RemoteExceptionCode::from_u32 nutzen, um in
das Enum zu mappen.
DuplicateInstanceName(String)
Doppelt vergebener service_instance_name auf demselben Participant.
Dcps(String)
Generischer DCPS-Aufruf-Fehler (Topic-Anlegen, Writer-Create etc.).
QosProfileNotFound(String)
QoS-Profile nicht in der DdsXml-Library gefunden.
Implementations§
Trait Implementations§
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()