Function error_stream
Source pub fn error_stream(status: Status) -> MessageStream
Expand description
Helper to create an error stream
Returns a stream that immediately yields a gRPC error.
§Example
ⓘuse spikard_http::grpc::streaming::error_stream;
use tonic::Status;
let stream = error_stream(Status::internal("Something went wrong"));