ouroboros-network:protocols
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.ObjectDiffusion.Codec

Synopsis

Documentation

codecObjectDiffusion Source #

Arguments

:: forall objectId object (m :: Type -> Type). MonadST m 
=> (objectId -> Encoding)

encode objectId

-> (forall s. Decoder s objectId)

decode objectId

-> (object -> Encoding)

encode object

-> (forall s. Decoder s object)

decode object

-> Codec (ObjectDiffusion objectId object) DeserialiseFailure m ByteString 

codecObjectDiffusionId :: forall objectId object (m :: Type -> Type). Monad m => Codec (ObjectDiffusion objectId object) CodecFailure m (AnyMessage (ObjectDiffusion objectId object)) Source #

byteLimitsObjectDiffusion :: (bytes -> Word) -> ProtocolSizeLimits (ObjectDiffusion objectId object) bytes Source #

Byte Limits.

timeLimitsObjectDiffusion :: ProtocolTimeLimits (ObjectDiffusion objectId object) Source #

ObjectDiffusion time limits.

ObjectDiffusion statetimeout (s)
StInitwaitForever
StIdlewaitForever
StObjectIds StBlockingwaitForever
StObjectIds StNonBlockingshortWait
StObjectsshortWait