Skip to content

Enable injecting custom partition assignor #29

@vertexclique

Description

@vertexclique

This one is little bit tricky.
You need to inject custom partition assignor as raw pointer allocated on heap by using the implementaion of this trait: https://docs.rs/rdkafka/latest/rdkafka/consumer/trait.ConsumerContext.html
need to make it inside a object allocated on heap and injected into here:
https://github.com/vertexclique/callysto/blob/625f38587d3c0695c116b8c3662c74bbb2db7704/src/kafka/enums.rs#L56

HOW

How I will make it inside an Box<dyn ConsumerContext>? What I need to know? What is a Box? Why Box? What does heap allocated object means? What is dyn?
@ansrivas can help you on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NightmareHardcore features or bugs to deal with.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions