| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.NodeId
Contents
Synopsis
- data NodeId
- = CoreId !CoreNodeId
- | RelayId !Word64
- newtype CoreNodeId = CoreNodeId {}
- fromCoreNodeId :: CoreNodeId -> NodeId
Node IDs
Constructors
| CoreId !CoreNodeId | |
| RelayId !Word64 |
Instances
| Eq NodeId Source # | |
| Ord NodeId Source # | |
| Show NodeId Source # | |
| Generic NodeId Source # | |
| Hashable NodeId Source # | |
| NoThunks NodeId Source # | |
| Condense NodeId Source # | |
| type Rep NodeId Source # | |
Defined in Ouroboros.Consensus.NodeId type Rep NodeId = D1 ('MetaData "NodeId" "Ouroboros.Consensus.NodeId" "ouroboros-consensus-0.1.0.0-GfJNvFcM6lj2s5utKAUPEp" 'False) (C1 ('MetaCons "CoreId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CoreNodeId)) :+: C1 ('MetaCons "RelayId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))) | |
newtype CoreNodeId Source #
Core node ID
Constructors
| CoreNodeId | |
Fields | |
Instances
fromCoreNodeId :: CoreNodeId -> NodeId Source #