FlushOutcome
What a flush found: whether a close from this end can still throw away the frames you already sent.
A send that returned has only been accepted. It may still be waiting in a queue on this device, and a close straight after it can throw it away. flush is how a caller waits for that queue to pass the frames it already sent, without paying that wait on every close.
Drained never means the other peer received anything. See it for the one thing it does say. A caller that needs receipt needs an acknowledgement of its own.
Every arm except Drained means "not proven". None of them says a frame was lost, and TimedOut in particular leaves every frame queued and still on its way.
See also
Inheritors
Types
A close of this seam or connection that follows goes out behind every send accepted before flush was called, so it cannot be what throws those frames away on this device. That is the whole promise, and three things stay outside it:
The link ended, or failed, before the barrier was confirmed — including a seam that was already SeamState.Torn when flush was called. Some frames may have left and some may not.
The barrier was not confirmed within the timeout. The link stays up, nothing is dropped, and the frames carry on: call flush again, or close and accept that they may be lost.
This implementation has no way to tell, so nothing was proven and nothing should be inferred.