mizchi/crater-webdriver-bidi/rpc does not have a README file
using @mizchi/crater-webdriver-bidi/contract { type ApiError }
using @mizchi/crater-webdriver-bidi/contract { type ApiMethod }
pub(all) enum RpcErrorCode { ParseError InvalidRequest MethodNotFound InvalidParams InternalError ElementNotFound PageNotFound Timeout NavigationFailed} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Show for RpcErrorCode
fn output(self : RpcErrorCode, logger : &Logger) -> Unit
fn RpcErrorCode::code(self : RpcErrorCode) -> Int
fn RpcErrorCode::equal(RpcErrorCode, RpcErrorCode) -> Bool
fn RpcErrorCode::not_equal(x : RpcErrorCode, y : RpcErrorCode) -> Bool
fn RpcErrorCode::output(self : RpcErrorCode, logger : &Logger) -> Unit
fn RpcErrorCode::to_repr(RpcErrorCode) -> @moonbitlang/core/debug.ReprRepr
fn RpcErrorCode::to_string(self : RpcErrorCode) -> String
pub(all) enum RpcId { Num(Int) Str(String) Null} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Show for RpcId
fn output(self : RpcId, logger : &Logger) -> Unit
fn RpcId::equal(RpcId, RpcId) -> Bool
fn RpcId::not_equal(x : RpcId, y : RpcId) -> Bool
fn RpcId::output(self : RpcId, logger : &Logger) -> Unit
fn RpcId::to_json(self : RpcId) -> String
fn RpcId::to_repr(RpcId) -> @moonbitlang/core/debug.ReprRepr
fn RpcId::to_string(self : RpcId) -> String
pub(all) struct RpcRequest { jsonrpc : String id : RpcId method_name : String params : Map[String, String]} derive(@moonbitlang/core/debug.DebugDebug)
impl Show for RpcRequest
fn output(self : RpcRequest, logger : &Logger) -> Unit
fn RpcRequest::output(self : RpcRequest, logger : &Logger) -> Unit
fn RpcRequest::to_repr(RpcRequest) -> @moonbitlang/core/debug.ReprRepr
fn RpcRequest::to_string(self : RpcRequest) -> String
pub(all) enum RpcResponse { Success(id~ : RpcId, result~ : String) Error(id~ : RpcId, code~ : Int, message~ : String, data~ : String?)} derive(@moonbitlang/core/debug.DebugDebug)
impl Show for RpcResponse
fn output(self : RpcResponse, logger : &Logger) -> Unit
fn RpcResponse::output(self : RpcResponse, logger : &Logger) -> Unit
fn RpcResponse::to_json(self : RpcResponse) -> String
fn RpcResponse::to_repr(RpcResponse) -> @moonbitlang/core/debug.ReprRepr
fn RpcResponse::to_string(self : RpcResponse) -> String
fn api_error_to_rpc(id : RpcId, err : @mizchi/crater-webdriver-bidi/contract.ApiErrorApiError) -> RpcResponse
fn parse_json_object(json : String) -> Map[String, String]
fn parse_method(name : String) -> @mizchi/crater-webdriver-bidi/contract.ApiMethodApiMethod?
fn rpc_error(id : RpcId, code : RpcErrorCode, message : String) -> RpcResponse
fn rpc_error_with_data(id : RpcId, code : RpcErrorCode, message : String, data : String) -> RpcResponse
fn rpc_success_bool(id : RpcId, value : Bool) -> RpcResponse
fn rpc_success_json(id : RpcId, json : String) -> RpcResponse
fn rpc_success_null(id : RpcId) -> RpcResponse
fn rpc_success_number(id : RpcId, value : Double) -> RpcResponse
fn rpc_success_string(id : RpcId, value : String) -> RpcResponse
Install
WebDriver BiDi adapter module for crater browser integration
No dependents