qubit-http 0.5.2

General-purpose HTTP infrastructure for Rust with unified client semantics, secure logging, and built-in SSE decoding
Documentation
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/
//! Stream type for [`SseChunk`](crate::sse::SseChunk) items.
//!

use std::pin::Pin;

use futures_util::Stream;

use crate::HttpResult;

use super::sse_chunk::SseChunk;

/// Pin-boxed stream of [`SseChunk`] or [`HttpError`](crate::HttpError).
pub type SseChunkStream<T> = Pin<Box<dyn Stream<Item = HttpResult<SseChunk<T>>> + Send>>;