toxcore-0.2.12: A Tox protocol implementation in Haskell
Safe HaskellNone
LanguageHaskell2010

Network.Tox.DHT.RpcPacket

Documentation

newtype RequestId Source #

Constructors

RequestId Word64 

Instances

Instances details
Eq RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Read RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Show RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Generic RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Associated Types

type Rep RequestId :: Type -> Type #

Arbitrary RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Binary RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

MessagePack RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

type Rep RequestId Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

type Rep RequestId = D1 ('MetaData "RequestId" "Network.Tox.DHT.RpcPacket" "toxcore-0.2.12-inplace" 'True) (C1 ('MetaCons "RequestId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data RpcPacket payload Source #

Constructors

RpcPacket 

Fields

Instances

Instances details
Eq payload => Eq (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Methods

(==) :: RpcPacket payload -> RpcPacket payload -> Bool #

(/=) :: RpcPacket payload -> RpcPacket payload -> Bool #

Read payload => Read (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Methods

readsPrec :: Int -> ReadS (RpcPacket payload) #

readList :: ReadS [RpcPacket payload] #

readPrec :: ReadPrec (RpcPacket payload) #

readListPrec :: ReadPrec [RpcPacket payload] #

Show payload => Show (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Methods

showsPrec :: Int -> RpcPacket payload -> ShowS #

show :: RpcPacket payload -> String #

showList :: [RpcPacket payload] -> ShowS #

Generic (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Associated Types

type Rep (RpcPacket payload) :: Type -> Type #

Methods

from :: RpcPacket payload -> Rep (RpcPacket payload) x #

to :: Rep (RpcPacket payload) x -> RpcPacket payload #

Arbitrary payload => Arbitrary (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Methods

arbitrary :: Gen (RpcPacket payload) #

shrink :: RpcPacket payload -> [RpcPacket payload] #

Binary payload => Binary (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

Methods

put :: RpcPacket payload -> Put #

get :: Get (RpcPacket payload) #

putList :: [RpcPacket payload] -> Put #

MessagePack payload => MessagePack (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

type Rep (RpcPacket payload) Source # 
Instance details

Defined in Network.Tox.DHT.RpcPacket

type Rep (RpcPacket payload) = D1 ('MetaData "RpcPacket" "Network.Tox.DHT.RpcPacket" "toxcore-0.2.12-inplace" 'False) (C1 ('MetaCons "RpcPacket" 'PrefixI 'True) (S1 ('MetaSel ('Just "rpcPayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 payload) :*: S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RequestId)))