mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
13 lines
332 B
Rust
13 lines
332 B
Rust
use futures_util::Stream;
|
|
|
|
use crate::Error;
|
|
|
|
pub trait Framer: Send {
|
|
type Frame: Send;
|
|
|
|
fn frame<S, B, E>(self, input: S) -> impl Stream<Item = Result<Self::Frame, Error>> + Send
|
|
where
|
|
S: Stream<Item = Result<B, E>> + Send,
|
|
B: bytes::Buf + Send,
|
|
E: std::error::Error + Send + Sync + 'static;
|
|
}
|