pub enum RustGenError {
Unsupported {
what: &'static str,
at: usize,
},
InvalidAnnotation {
name: String,
reason: &'static str,
},
UnresolvedType {
scoped: String,
},
}Expand description
Error while generating Rust code from the IDL AST.
Variants§
Unsupported
The IDL construct is currently not supported by the Rust codegen.
Not a spec bug — some IDL features (Fixed, Map, Any, Bitset, Bitmask, Valuetype, Interface, Component, Home) are outside the DDS-DataType path. Whoever generates DDS DataTypes does not need them.
Fields
InvalidAnnotation
The annotation value could not be evaluated.
UnresolvedType
The type reference could not be resolved.
Trait Implementations§
Source§impl Clone for RustGenError
impl Clone for RustGenError
Source§fn clone(&self) -> RustGenError
fn clone(&self) -> RustGenError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustGenError
impl Debug for RustGenError
Source§impl Display for RustGenError
impl Display for RustGenError
impl Eq for RustGenError
Source§impl Error for RustGenError
impl Error for RustGenError
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()
Source§impl PartialEq for RustGenError
impl PartialEq for RustGenError
Source§fn eq(&self, other: &RustGenError) -> bool
fn eq(&self, other: &RustGenError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RustGenError
Auto Trait Implementations§
impl Freeze for RustGenError
impl RefUnwindSafe for RustGenError
impl Send for RustGenError
impl Sync for RustGenError
impl Unpin for RustGenError
impl UnsafeUnpin for RustGenError
impl UnwindSafe for RustGenError
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