Skip to main content

KernelWithReflection

Trait KernelWithReflection 

Source
pub trait KernelWithReflection: UpbWithReflection + UpbGetMessagePtr<Msg = Self> { }
Expand description

Implemented by every generated message whose MessageDef can be looked up at runtime.

UpbGetMessagePtr<Msg = Self> ties the message pointer that reflection APIs operate on to the MessageDef they look up by Self, so the two can never describe different message types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: UpbWithReflection + UpbGetMessagePtr<Msg = T>> KernelWithReflection for T