capnp-0.2.0.0: Cap'n Proto for Haskell

Safe HaskellNone
LanguageHaskell2010

Capnp.Capnp.RpcTwoparty

Description

This module is the generated code for capnp/rpc-twoparty.capnp, for the low-level api.

Documentation

newtype JoinKeyPart msg Source #

Constructors

JoinKeyPart_newtype_ (Struct msg) 
Instances
ToStruct msg (JoinKeyPart msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

toStruct :: JoinKeyPart msg -> Struct msg Source #

FromStruct msg (JoinKeyPart msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromStruct :: ReadCtx m msg => Struct msg -> m (JoinKeyPart msg) Source #

IsPtr msg (JoinKeyPart msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (JoinKeyPart msg) Source #

toPtr :: JoinKeyPart msg -> Maybe (Ptr msg) Source #

Allocate s (JoinKeyPart (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

new :: WriteCtx m s => MutMsg s -> m (JoinKeyPart (MutMsg s)) Source #

MutListElem s (JoinKeyPart (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

setIndex :: RWCtx m s => JoinKeyPart (MutMsg s) -> Int -> List (MutMsg s) (JoinKeyPart (MutMsg s)) -> m () Source #

newList :: WriteCtx m s => MutMsg s -> Int -> m (List (MutMsg s) (JoinKeyPart (MutMsg s))) Source #

ListElem msg (JoinKeyPart msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Associated Types

data List msg (JoinKeyPart msg) :: * Source #

Methods

length :: List msg (JoinKeyPart msg) -> Int Source #

index :: ReadCtx m msg => Int -> List msg (JoinKeyPart msg) -> m (JoinKeyPart msg) Source #

IsPtr msg (List msg (JoinKeyPart msg)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (List msg (JoinKeyPart msg)) Source #

toPtr :: List msg (JoinKeyPart msg) -> Maybe (Ptr msg) Source #

MessageDefault (JoinKeyPart msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

messageDefault :: msg -> JoinKeyPart msg Source #

HasMessage (JoinKeyPart msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

message :: JoinKeyPart msg -> msg Source #

data List msg (JoinKeyPart msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

data List msg (JoinKeyPart msg) = List_JoinKeyPart (ListOf msg (Struct msg))

newtype JoinResult msg Source #

Constructors

JoinResult_newtype_ (Struct msg) 
Instances
ToStruct msg (JoinResult msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

toStruct :: JoinResult msg -> Struct msg Source #

FromStruct msg (JoinResult msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromStruct :: ReadCtx m msg => Struct msg -> m (JoinResult msg) Source #

IsPtr msg (JoinResult msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (JoinResult msg) Source #

toPtr :: JoinResult msg -> Maybe (Ptr msg) Source #

Allocate s (JoinResult (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

new :: WriteCtx m s => MutMsg s -> m (JoinResult (MutMsg s)) Source #

MutListElem s (JoinResult (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

setIndex :: RWCtx m s => JoinResult (MutMsg s) -> Int -> List (MutMsg s) (JoinResult (MutMsg s)) -> m () Source #

newList :: WriteCtx m s => MutMsg s -> Int -> m (List (MutMsg s) (JoinResult (MutMsg s))) Source #

ListElem msg (JoinResult msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Associated Types

data List msg (JoinResult msg) :: * Source #

Methods

length :: List msg (JoinResult msg) -> Int Source #

index :: ReadCtx m msg => Int -> List msg (JoinResult msg) -> m (JoinResult msg) Source #

IsPtr msg (List msg (JoinResult msg)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (List msg (JoinResult msg)) Source #

toPtr :: List msg (JoinResult msg) -> Maybe (Ptr msg) Source #

MessageDefault (JoinResult msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

messageDefault :: msg -> JoinResult msg Source #

HasMessage (JoinResult msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

message :: JoinResult msg -> msg Source #

data List msg (JoinResult msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

data List msg (JoinResult msg) = List_JoinResult (ListOf msg (Struct msg))

get_JoinResult'cap :: ReadCtx m msg => JoinResult msg -> m (Maybe (Ptr msg)) Source #

newtype ProvisionId msg Source #

Constructors

ProvisionId_newtype_ (Struct msg) 
Instances
ToStruct msg (ProvisionId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

toStruct :: ProvisionId msg -> Struct msg Source #

FromStruct msg (ProvisionId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromStruct :: ReadCtx m msg => Struct msg -> m (ProvisionId msg) Source #

IsPtr msg (ProvisionId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (ProvisionId msg) Source #

toPtr :: ProvisionId msg -> Maybe (Ptr msg) Source #

Allocate s (ProvisionId (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

new :: WriteCtx m s => MutMsg s -> m (ProvisionId (MutMsg s)) Source #

MutListElem s (ProvisionId (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

setIndex :: RWCtx m s => ProvisionId (MutMsg s) -> Int -> List (MutMsg s) (ProvisionId (MutMsg s)) -> m () Source #

newList :: WriteCtx m s => MutMsg s -> Int -> m (List (MutMsg s) (ProvisionId (MutMsg s))) Source #

ListElem msg (ProvisionId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Associated Types

data List msg (ProvisionId msg) :: * Source #

Methods

length :: List msg (ProvisionId msg) -> Int Source #

index :: ReadCtx m msg => Int -> List msg (ProvisionId msg) -> m (ProvisionId msg) Source #

IsPtr msg (List msg (ProvisionId msg)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (List msg (ProvisionId msg)) Source #

toPtr :: List msg (ProvisionId msg) -> Maybe (Ptr msg) Source #

MessageDefault (ProvisionId msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

messageDefault :: msg -> ProvisionId msg Source #

HasMessage (ProvisionId msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

message :: ProvisionId msg -> msg Source #

data List msg (ProvisionId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

data List msg (ProvisionId msg) = List_ProvisionId (ListOf msg (Struct msg))

data Side Source #

Instances
Enum Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

succ :: Side -> Side #

pred :: Side -> Side #

toEnum :: Int -> Side #

fromEnum :: Side -> Int #

enumFrom :: Side -> [Side] #

enumFromThen :: Side -> Side -> [Side] #

enumFromTo :: Side -> Side -> [Side] #

enumFromThenTo :: Side -> Side -> Side -> [Side] #

Eq Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

(==) :: Side -> Side -> Bool #

(/=) :: Side -> Side -> Bool #

Read Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Show Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

showsPrec :: Int -> Side -> ShowS #

show :: Side -> String #

showList :: [Side] -> ShowS #

Generic Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Associated Types

type Rep Side :: * -> * #

Methods

from :: Side -> Rep Side x #

to :: Rep Side x -> Side #

IsWord Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

MutListElem s Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

setIndex :: RWCtx m s => Side -> Int -> List (MutMsg s) Side -> m () Source #

newList :: WriteCtx m s => MutMsg s -> Int -> m (List (MutMsg s) Side) Source #

ListElem msg Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Associated Types

data List msg Side :: * Source #

Methods

length :: List msg Side -> Int Source #

index :: ReadCtx m msg => Int -> List msg Side -> m Side Source #

IsPtr msg (List msg Side) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (List msg Side) Source #

toPtr :: List msg Side -> Maybe (Ptr msg) Source #

type Rep Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

type Rep Side = D1 (MetaData "Side" "Capnp.Capnp.RpcTwoparty" "capnp-0.2.0.0-GVlOuXtocAy6sjd7SXWbQY" False) (C1 (MetaCons "Side'server" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "Side'client" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Side'unknown'" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Word16))))
data List msg Side Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

data List msg Side = List_Side (ListOf msg Word16)

newtype VatId msg Source #

Constructors

VatId_newtype_ (Struct msg) 
Instances
ToStruct msg (VatId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

toStruct :: VatId msg -> Struct msg Source #

FromStruct msg (VatId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromStruct :: ReadCtx m msg => Struct msg -> m (VatId msg) Source #

IsPtr msg (VatId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (VatId msg) Source #

toPtr :: VatId msg -> Maybe (Ptr msg) Source #

Allocate s (VatId (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

new :: WriteCtx m s => MutMsg s -> m (VatId (MutMsg s)) Source #

MutListElem s (VatId (MutMsg s)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

setIndex :: RWCtx m s => VatId (MutMsg s) -> Int -> List (MutMsg s) (VatId (MutMsg s)) -> m () Source #

newList :: WriteCtx m s => MutMsg s -> Int -> m (List (MutMsg s) (VatId (MutMsg s))) Source #

ListElem msg (VatId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Associated Types

data List msg (VatId msg) :: * Source #

Methods

length :: List msg (VatId msg) -> Int Source #

index :: ReadCtx m msg => Int -> List msg (VatId msg) -> m (VatId msg) Source #

IsPtr msg (List msg (VatId msg)) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (List msg (VatId msg)) Source #

toPtr :: List msg (VatId msg) -> Maybe (Ptr msg) Source #

MessageDefault (VatId msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

messageDefault :: msg -> VatId msg Source #

HasMessage (VatId msg) msg Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

Methods

message :: VatId msg -> msg Source #

data List msg (VatId msg) Source # 
Instance details

Defined in Capnp.Capnp.RpcTwoparty

data List msg (VatId msg) = List_VatId (ListOf msg (Struct msg))

get_VatId'side :: ReadCtx m msg => VatId msg -> m Side Source #

has_VatId'side :: ReadCtx m msg => VatId msg -> m Bool Source #

set_VatId'side :: RWCtx m s => VatId (MutMsg s) -> Side -> m () Source #