colmugx/acp/runtime does not have a README file
pub(all) suberror RuntimeError {
InvalidOptions
ReaderFailed
ReaderEmptyChunk
EventQueueClosed
EventQueueBackpressure(limit~ : Int)
WriterQueueClosed
WriterQueueBackpressure(limit~ : Int)
WriterFailed
FramingFailed
JsonRpcDecodeFailed
JsonRpcEncodeFailed
ReducerFailed
TaskControlMissing
TaskRequestMismatch
HandlerFailed
NotificationFailed
ResponseHandlerFailed
OutboundCancelUnavailable
OutboundCancelFailed
OutboundCompletionFailed
CloseCleanupFailed(primary_kind~ : String, cleanup_phase~ : String)
}pub(all) struct RuntimeHandlerPort {
request : async (JsonRpcRequest) -> RuntimeHandlerResult
notification : async (JsonRpcNotification) -> Unit
response : async (JsonRpcResponse) -> Unit
outbound_failure : async (RequestId, RuntimeOutboundFailure) -> Unit?
}pub(all) struct RuntimeOptions {
max_frame_bytes : Int
queue_capacity : Int
read_chunk_bytes : Int
}pub(all) struct RuntimePorts {
reader : RuntimeReaderPort
writer : RuntimeWriterPort
handlers : RuntimeHandlerPort
cancel_outbound : async (RequestId) -> Unit?
trace : (RuntimeTraceEvent) -> Unit
}pub(all) struct RuntimeProcessPorts {
ports : RuntimePorts
child : Process
child_stdin : WriteToProcess
child_stdout : ReadFromProcess
}pub(all) struct RuntimeReaderPort {
read : async (Int) -> Bytes?
}pub(all) struct RuntimeTraceEvent {
direction : String
phase : String
request_id : String
method_name : String
error_kind : String
}pub(all) struct RuntimeWriterPort {
write : async (Bytes) -> Unit
}fn runtime_libc_write(fd : Int, buffer : Bytes, count : Int) -> Intasync fn[G] runtime_process_ports(group : TaskGroup[G], handlers~ : RuntimeHandlerPort, command~ : String, args? : Array[String], extra_env? : Map[String, String], inherit_env? : Bool, cancel_outbound? : async (RequestId) -> Unit?, trace? : (RuntimeTraceEvent) -> Unit) -> RuntimeProcessPorts raise RuntimeErrorfn runtime_trace_event(direction : String, phase : String, request_id : String, method_name : String, error_kind : String) -> RuntimeTraceEventDependencies