pub trait PublisherResolver {
// Required method
fn publish_raw(&self, entity_id: &str, data: &[u8]) -> NodeResult<()>;
}Expand description
Resolves a component publisher by its stable EntityId for the
callback-body publish path (W.5.1).
The generated runtime implements this over its owned 'static publishers;
metadata/discovery mode never constructs a CallbackCtx, so it need not
implement this.
Required Methods§
Sourcefn publish_raw(&self, entity_id: &str, data: &[u8]) -> NodeResult<()>
fn publish_raw(&self, entity_id: &str, data: &[u8]) -> NodeResult<()>
Publish raw CDR bytes through the publisher with this stable entity id.
Err(NodeDeclError::Runtime) if no such publisher is registered or the
transport rejects the write.