about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-01-29 18:56:34 +0900
committerGitHub <noreply@github.com>2020-01-29 18:56:34 +0900
commit50df7880a77912702de51f454e58ae65a48d9e29 (patch)
tree8dad61703ae7694056bc0e424fc78aed246ec6c5 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent0e365583f3d9aa0fba5a0110252055c3d10ad87c (diff)
parent9bb2a50e04460fff646830502d575b82dbf17055 (diff)
downloadrust-50df7880a77912702de51f454e58ae65a48d9e29.tar.gz
rust-50df7880a77912702de51f454e58ae65a48d9e29.zip
Rollup merge of #68627 - joshtriplett:write-all-none, r=Dylan-DPC
Document that write_all will not call write if given an empty buffer

Some types of Write instances have a semantic meaning associated with
writing an empty buffer, such as sending an empty packet. This works
when calling `write` directly, and supplying an empty buffer. However,
calling `write_all` on an empty buffer will simply never call `write`,
because `write_all` assumes it has no work to do.

Document this behavior, to help prospective users of
datagram-packet-style Write instances.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions