Skip to content

Is there any plan to support more actions for rust callbacks(as in cpp sdk)? #105

@dandlake

Description

@dandlake

In rust sdk, those header/body callbacks can only return "Pause" or "Continue" action:

pub enum Action {
    Continue = 0,
    Pause = 1,
}

In cpp sdk, there are more:

enum class FilterHeadersStatus : int32_t {
  Continue = 0,
  StopIteration = 1,
  ContinueAndEndStream = 2,
  StopAllIterationAndBuffer = 3,
  StopAllIterationAndWatermark = 4,
};

enum class FilterDataStatus : int32_t {
  Continue = 0,
  StopIterationAndBuffer = 1,
  StopIterationAndWatermark = 2,
  StopIterationNoBuffer = 3
};

Any plan to bring those additional actions to rust sdk? We hope to have better control over the buffering behavior in our rust filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions