class OnStreamFailed
Defined at line 1006 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/markers.h
The stream has failed, but the StreamProcessor instance is still usable
for a new stream.
This message is only ever sent by the server if the client previously
sent EnableOnStreamFailed(). If the client didn't send
EnableOnStreamFailed() then the server closes the StreamProcessor
channel instead.
StreamProcessor server implementations are encouraged to handle stream
errors (and ideally to also report them via error_ bools of
OnOutputPacket() and OnOutputEndOfStream()) without failing the whole
stream, but if a stream processor server is unable to do that, but still
can cleanly contain the failure to the stream, the stream processor
server can (assuming EnableOnStreamFailed() was called) use
OnStreamFailed() to indicate the stream failure to the client without
closing the StreamProcessor channel.
An ideal StreamProcessor server handles problems with input data without
sending this message, but sending this message is preferred vs. closing
the server end of the StreamProcessor channel if the StreamProcessor
server can 100% reliably contain the stream failure to the stream,
without any adverse impact to any later stream.
No further messages will arrive from the server regarding the failed
stream. This includes any OnOutputEndOfStream() that the client would
have otherwise expected.
Public Members
static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal