capnp-0.12.0.0: Cap'n Proto for Haskell
Safe HaskellNone
LanguageHaskell2010

Capnp.Gen.Capnp.Stream

Documentation

newtype StreamResult msg Source #

Constructors

StreamResult'newtype_ (Struct msg) 

Instances

Instances details
ToStruct msg (StreamResult msg) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

toStruct :: StreamResult msg -> Struct msg Source #

FromStruct msg (StreamResult msg) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

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

ToPtr s (StreamResult ('Mut s)) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

toPtr :: WriteCtx m s => Message ('Mut s) -> StreamResult ('Mut s) -> m (Maybe (Ptr ('Mut s))) Source #

FromPtr msg (StreamResult msg) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

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

Allocate s (StreamResult ('Mut s)) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

new :: WriteCtx m s => Message ('Mut s) -> m (StreamResult ('Mut s)) Source #

MutListElem s (StreamResult ('Mut s)) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

setIndex :: RWCtx m s => StreamResult ('Mut s) -> Int -> List ('Mut s) (StreamResult ('Mut s)) -> m () Source #

newList :: WriteCtx m s => Message ('Mut s) -> Int -> m (List ('Mut s) (StreamResult ('Mut s))) Source #

ListElem mut (StreamResult mut) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Associated Types

data List mut (StreamResult mut) Source #

Methods

listFromPtr :: ReadCtx m mut => Message mut -> Maybe (Ptr mut) -> m (List mut (StreamResult mut)) Source #

toUntypedList :: List mut (StreamResult mut) -> List mut Source #

length :: List mut (StreamResult mut) -> Int Source #

index :: ReadCtx m mut => Int -> List mut (StreamResult mut) -> m (StreamResult mut) Source #

MessageDefault (StreamResult mut) mut Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

messageDefault :: ReadCtx m mut => Message mut -> m (StreamResult mut) Source #

HasMessage (StreamResult mut) mut Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

Methods

message :: StreamResult mut -> Message mut Source #

newtype List mut (StreamResult mut) Source # 
Instance details

Defined in Capnp.Gen.Capnp.Stream

newtype List mut (StreamResult mut) = StreamResult'List_ (ListOf mut (Struct mut))