network-mux-0.1.0.1: Multiplexing library
Safe Haskell None
Language Haskell2010

Network.Mux.Trace

Synopsis

Documentation

data MuxErrorType Source #

Enumeration of error conditions.

Constructors

MuxUnknownMiniProtocol

returned by decodeMuxSDUHeader , thrown by MuxBearer .

MuxDecodeError

return by decodeMuxSDUHeader , thrown by MuxBearer .

MuxBearerClosed

thrown by MuxBearer when received a null byte.

MuxIngressQueueOverRun

thrown by demux when violating maximumIngressQueue byte limit.

MuxInitiatorOnly

thrown when data arrives on a responder channel when the mux was set up as an InitiatorApp .

MuxIOException IOException

IOException thrown by

MuxSDUReadTimeout

thrown when reading of a single SDU takes too long

MuxSDUWriteTimeout

thrown when writing a single SDU takes too long

MuxShutdown !( Maybe MuxErrorType )

Result of runMiniProtocol's completionAction in case of an error or mux being closed while a mini-protocol was still running, this is not a clean exit.

MuxCleanShutdown

Mux stopped by stopMux

handleIOException :: MonadThrow m => String -> IOException -> m a Source #

Handler for IOException s which wraps them in MuxError .

It is used various MuxBearer implementations: * socketAsMuxBearer * pipeAsMuxBearer

data WithMuxBearer peerid a Source #

Type used for tracing mux events.

Constructors

WithMuxBearer

Fields

Instances

Instances details
( Show peerid, Show a) => Show ( WithMuxBearer peerid a) Source #
Instance details

Defined in Network.Mux.Trace

Generic ( WithMuxBearer peerid a) Source #
Instance details

Defined in Network.Mux.Trace

Associated Types

type Rep ( WithMuxBearer peerid a) :: Type -> Type Source #

type Rep ( WithMuxBearer peerid a) Source #
Instance details

Defined in Network.Mux.Trace

type Rep ( WithMuxBearer peerid a) = D1 (' MetaData "WithMuxBearer" "Network.Mux.Trace" "network-mux-0.1.0.1-7ZKx91o48G8EWFMuCmTsQc" ' False ) ( C1 (' MetaCons "WithMuxBearer" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "wmbPeerId") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 peerid) :*: S1 (' MetaSel (' Just "wmbEvent") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 a)))

data TraceLabelPeer peerid a Source #

A peer label for use in Tracer s. This annotates tracer output as being associated with a given peer identifier.

Constructors

TraceLabelPeer peerid a