Skip to content

fix: support custom runtime control message injection#40

Merged
mrcrgl merged 1 commit into
mainfrom
fix/20-runtimehandle-custom-control-message
Apr 7, 2026
Merged

fix: support custom runtime control message injection#40
mrcrgl merged 1 commit into
mainfrom
fix/20-runtimehandle-custom-control-message

Conversation

@mrcrgl

@mrcrgl mrcrgl commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add RuntimeHandle::control(RuntimeControlMessage) for arbitrary control-message forwarding
  • add RuntimeHandle::custom(T) convenience helper for custom payload injection
  • make RuntimeGuard::handle() return Arc<RuntimeHandle> (concrete handle) while preserving existing trait-object usability via coercion
  • add RuntimeGuard::control(...) and RuntimeGuard::custom(...) helpers
  • add integration test proving custom payloads are delivered through runtime control path
  • update changelog under Unreleased -> Fixed

Why

Issue #20 reports that RuntimeControlMessage::Custom cannot be injected because runtime handles only expose shutdown/reload pathways.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-features -- -D warnings
  • cargo test --all
  • cargo test --no-default-features

Closes #20

@mrcrgl mrcrgl marked this pull request as ready for review April 7, 2026 11:59
@mrcrgl mrcrgl merged commit e36502c into main Apr 7, 2026
3 checks passed
@mrcrgl mrcrgl deleted the fix/20-runtimehandle-custom-control-message branch April 7, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom RuntimeControlMessage not passed

1 participant