ouroboros-network:protocols-tests-lib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.ObjectDiffusion.Examples

Documentation

testObjectDiffusionOutbound Source #

Arguments

:: forall objectId object (m :: Type -> Type). (Ord objectId, Show objectId, Monad m) 
=> Tracer m (TraceObjectDiffusionTestImplem objectId object) 
-> (object -> objectId) 
-> Word16

Maximum number of unacknowledged object IDs allowed

-> [object] 
-> ObjectDiffusionOutbound objectId object m () 

data TraceObjectDiffusionTestImplem objectId object Source #

Constructors

EventRecvMsgRequestObjectIds (StrictSeq objectId) (Map objectId object) [object] NumObjectIdsAck NumObjectIdsReq 
EventRecvMsgRequestObjects (StrictSeq objectId) (Map objectId object) [object] [objectId] 

Instances

Instances details
(Show objectId, Show object) => Show (TraceObjectDiffusionTestImplem objectId object) Source # 
Instance details

Defined in Ouroboros.Network.Protocol.ObjectDiffusion.Examples

testObjectDiffusionInbound Source #

Arguments

:: forall objectId object (m :: Type -> Type). (Ord objectId, Applicative m) 
=> Tracer m (TraceObjectDiffusionTestImplem objectId object) 
-> (object -> objectId) 
-> Word16

Maximum number of unacknowledged object IDs allowed

-> Word16

Maximum number of object IDs to request in any one go

-> Word16

Maximum number of objects to request in any one go

-> ObjectDiffusionInboundPipelined objectId object m [object] 

data InboundState objectId object Source #

Constructors

InboundState 

Fields

Instances

Instances details
(Show objectId, Show object) => Show (InboundState objectId object) Source # 
Instance details

Defined in Ouroboros.Network.Protocol.ObjectDiffusion.Examples

Methods

showsPrec :: Int -> InboundState objectId object -> ShowS #

show :: InboundState objectId object -> String #

showList :: [InboundState objectId object] -> ShowS #