ChunkSendToken¶
Identifies a send_chunk() operation.
Returned by Responder.send_chunk() on success. The same token reaches
HTTPServerLifecycleEventReceiver.on_chunk_sent(). No callback fires until
the chunk's bytes reach the OS, and even then it can be lost — see that
callback for the case where it does not arrive. Tokens use structural
equality based on their ID, which is scoped per connection.
Applications managing multiple connections should pair tokens with connection identity to avoid ambiguity.
Implements¶
- Equatable[ChunkSendToken val] ref
Public fields¶
let id: U64 val¶
Public Functions¶
eq¶
Parameters¶
- that: ChunkSendToken val
Returns¶
- Bool val
ne¶
Parameters¶
- that: ChunkSendToken val
Returns¶
- Bool val