Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Error
- handleIOException :: MonadThrow m => String -> IOException -> m a
- data Trace
- = TraceRecvHeaderStart
- | TraceRecvHeaderEnd SDUHeader
- | TraceRecvDeltaQObservation SDUHeader Time
- | TraceRecvDeltaQSample Double Int Int Double Double Double Double String
- | TraceRecvStart Int
- | TraceRecvEnd Int
- | TraceSendStart SDUHeader
- | TraceSendEnd
- | TraceState BearerState
- | TraceCleanExit MiniProtocolNum MiniProtocolDir
- | TraceExceptionExit MiniProtocolNum MiniProtocolDir SomeException
- | TraceChannelRecvStart MiniProtocolNum
- | TraceChannelRecvEnd MiniProtocolNum Int
- | TraceChannelSendStart MiniProtocolNum Int
- | TraceChannelSendEnd MiniProtocolNum
- | TraceHandshakeStart
- | TraceHandshakeClientEnd DiffTime
- | TraceHandshakeServerEnd
- | Exception e => TraceHandshakeClientError e DiffTime
- | Exception e => TraceHandshakeServerError e
- | TraceSDUReadTimeoutException
- | TraceSDUWriteTimeoutException
- | TraceStartEagerly MiniProtocolNum MiniProtocolDir
- | TraceStartOnDemand MiniProtocolNum MiniProtocolDir
- | TraceStartedOnDemand MiniProtocolNum MiniProtocolDir
- | TraceTerminating MiniProtocolNum MiniProtocolDir
- | TraceStopping
- | TraceStopped
- | TraceTCPInfo StructTCPInfo Word16
- data BearerState
- data WithBearer peerid a = WithBearer {}
- data TraceLabelPeer peerid a = TraceLabelPeer peerid a
Documentation
Enumeration of error conditions.
UnknownMiniProtocol MiniProtocolNum | returned by |
BearerClosed String | thrown by |
IngressQueueOverRun MiniProtocolNum MiniProtocolDir | thrown by |
InitiatorOnly MiniProtocolNum | thrown when data arrives on a responder channel when the
mux was set up as an |
IOException IOException String |
|
SDUDecodeError String | return by |
SDUReadTimeout | thrown when reading of a single SDU takes too long |
SDUWriteTimeout | thrown when writing a single SDU takes too long |
Shutdown (Maybe SomeException) Status | 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. |
Instances
Exception Error Source # | |
Defined in Network.Mux.Trace toException :: Error -> SomeException # fromException :: SomeException -> Maybe Error # displayException :: Error -> String # backtraceDesired :: Error -> Bool # | |
Show Error Source # | |
handleIOException :: MonadThrow m => String -> IOException -> m a Source #
Handler for IOException
s which wraps them in Error
.
It is used various Bearer
implementations:
* socketAsBearer
* pipeAsBearer
Enumeration of Mux events that can be traced.
data BearerState Source #
Mature |
|
Dead |
|
Instances
Show BearerState Source # | |
Defined in Network.Mux.Trace showsPrec :: Int -> BearerState -> ShowS # show :: BearerState -> String # showList :: [BearerState] -> ShowS # | |
Eq BearerState Source # | |
Defined in Network.Mux.Trace (==) :: BearerState -> BearerState -> Bool # (/=) :: BearerState -> BearerState -> Bool # |
data WithBearer peerid a Source #
Type used for tracing mux events.
Instances
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.
TraceLabelPeer peerid a |
Instances
Bifunctor TraceLabelPeer Source # | |
Defined in Network.Mux.Trace bimap :: (a -> b) -> (c -> d) -> TraceLabelPeer a c -> TraceLabelPeer b d # first :: (a -> b) -> TraceLabelPeer a c -> TraceLabelPeer b c # second :: (b -> c) -> TraceLabelPeer a b -> TraceLabelPeer a c # | |
Functor (TraceLabelPeer peerid) Source # | |
Defined in Network.Mux.Trace fmap :: (a -> b) -> TraceLabelPeer peerid a -> TraceLabelPeer peerid b # (<$) :: a -> TraceLabelPeer peerid b -> TraceLabelPeer peerid a # | |
(Show peerid, Show a) => Show (TraceLabelPeer peerid a) Source # | |
Defined in Network.Mux.Trace showsPrec :: Int -> TraceLabelPeer peerid a -> ShowS # show :: TraceLabelPeer peerid a -> String # showList :: [TraceLabelPeer peerid a] -> ShowS # | |
(Eq peerid, Eq a) => Eq (TraceLabelPeer peerid a) Source # | |
Defined in Network.Mux.Trace (==) :: TraceLabelPeer peerid a -> TraceLabelPeer peerid a -> Bool # (/=) :: TraceLabelPeer peerid a -> TraceLabelPeer peerid a -> Bool # |