1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Generic chunk handling traits for builders
//!
//! This module provides traits for handling message chunks in builders:
//! - `MessageChunk` - trait for types that can represent both success and error states
//! - `ChunkHandler` - trait for handling streaming Results
/// Trait for message chunks that can represent both success and error states
/// Trait for builders that can handle streaming Results by unwrapping them
///
/// The `on_chunk` method takes a `Result<T, E>` and returns `T`, unwrapping the Result.