ouroboros-network-api-0.7.2.0: A networking api shared with ouroboros-consensus
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.Handshake.Acceptable

Synopsis

Documentation

data Accept vData Source #

A Maybe like type which better explains its purpose.

Constructors

Accept vData 
Refuse !Text 

Instances

Instances details
Show vData ⇒ Show (Accept vData) Source # 
Instance details

Defined in Ouroboros.Network.Handshake.Acceptable

Methods

showsPrecIntAccept vData → ShowS #

showAccept vData → String #

showList ∷ [Accept vData] → ShowS #

Eq vData ⇒ Eq (Accept vData) Source # 
Instance details

Defined in Ouroboros.Network.Handshake.Acceptable

Methods

(==)Accept vData → Accept vData → Bool #

(/=)Accept vData → Accept vData → Bool #

class Acceptable v where Source #

Methods

acceptableVersion ∷ v → v → Accept v Source #

The acceptableVersion function ought to be symmetric, this guarantees that local and remote sides will agree on the same data.