sse_encode_StreamSink_my_notification_Sse method

  1. @protected
void sse_encode_StreamSink_my_notification_Sse(
  1. RustStreamSink<MyNotification> self,
  2. SseSerializer serializer
)
override

Implementation

@protected
void sse_encode_StreamSink_my_notification_Sse(
    RustStreamSink<MyNotification> self, SseSerializer serializer) {
  // Codec=Sse (Serialization based), see doc to use other codecs
  sse_encode_String(
      self.setupAndSerialize(
          codec: SseCodec(
              decodeSuccessData: sse_decode_my_notification,
              decodeErrorData: null)),
      serializer);
}