Some implementations of Write
should implement Write
for an immutable reference as well
#73836
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
The implementations of
Write
which are MT-safe under the covers can implement a trait along the lines ofand some already do:
However, these appear to be the extent of the current implementations. The following types could also do the same:
Sink
– does not inspect data andWrite
methods are a no-op;Stdin
/Stdout
– internally aMutex
(and even if theMutex
was removed in the future, the underlying syscalls are MT-safe – much like they are for a regularFile
);ChildStdin
– similar toFile
or*Stream
s;The text was updated successfully, but these errors were encountered: