Module write
Available on crate feature
tokio only.Expand description
Write-side helpers: the cancellation-safe write arm and the teardown delivery/flush.
Enumsยง
- Wrote ๐
- One outcome of
write_or_flush.
Constantsยง
- GRACEFUL_
FLUSH_ ๐TIMEOUT - Upper bound on the teardown flush of a graceful DISCONNECT, so shutdown cannot hang on a peer that stopped reading.
Functionsยง
- deliver_
and_ ๐flush - Delivers buffered messages to the application, which is owed them because they are acknowledged. On a graceful close, also flushes the remaining outbound bytes.
- write_
or_ ๐flush - Writes one chunk of
pendingtowrite, or flushes whenpendingis empty.