mizchi/crater-browser/cdp does not have a README file
pub struct CdpContext {
id : String
target_id : String?
session_id : String?
session : CdpSession
url : String
title : String
}pub struct CdpFrameInfo {
id : String
parent_id : String?
loader_id : String
name : String
url : String
security_origin : String
mime_type : String
} derive(Debug)pub struct CdpNavigateResult {
frame_id : String
loader_id : String
error_text : String?
} derive(Debug)pub struct CdpNavigationEntry {
id : Int
url : String
title : String
transition_type : String
} derive(Debug)pub struct CdpNavigationHistory {
current_index : Int
entries : Array[CdpNavigationEntry]
} derive(Debug)pub struct CdpProtocol {
target : TargetDomain
network : NetworkManager
outbox : Array[CdpOutMessage]
lifecycle_events : Bool
}fn CdpProtocol::create_network_request(self : CdpProtocol, url : String, resource_type : ResourceType, document_url : String, frame_id : String) -> RequestIdfn CdpProtocol::create_network_request_with_loader(self : CdpProtocol, url : String, resource_type : ResourceType, document_url : String, frame_id : String, loader_id : String) -> RequestIdfn CdpProtocol::notify_loading_failed(self : CdpProtocol, request_id : RequestId, error : String) -> Unitfn CdpProtocol::notify_loading_finished(self : CdpProtocol, request_id : RequestId, encoded_data_length : Int) -> Unitfn CdpProtocol::notify_response_received(self : CdpProtocol, request_id : RequestId, url : String, status : Int, mime_type : String, headers : Map[String, String]) -> Unitfn CdpProtocol::notify_response_received_with_loader(self : CdpProtocol, request_id : RequestId, url : String, status : Int, mime_type : String, headers : Map[String, String], loader_id : String) -> Unitfn CdpResponse::new(id : Int?, result : Json?, error : CdpResponseError?, session_id : String?) -> CdpResponsepub struct CdpSession {
tree : DomTree
dom : DomDomain
input : InputDomain
page : PageDomain
session_id : String
target_id : String
}fn CdpSession::query_selector_all(self : CdpSession, selector : String) -> Result[Array[Int], CdpError]fn InputDomain::dispatch_key_event(self : InputDomain, type_ : String, key : String, code : String, text : String?) -> Result[Unit, CdpError]fn InputDomain::dispatch_mouse_event(self : InputDomain, type_ : String, x : Double, y : Double, button : String, click_count : Int) -> Result[Unit, CdpError]pub struct PageDomain {
tree : DomTree
current_url : String
title : String
frame_id : String
loader_id : Int
history : Array[CdpNavigationEntry]
history_index : Int
}pub struct TargetDomain {
contexts : Map[String, CdpContext]
active_context_id : String?
next_context_id : Int
next_target_id : Int
next_session_id : Int
auto_attach : Bool
discover_targets : Bool
}fn TargetDomain::attach_to_target(self : TargetDomain, target_id : String) -> Result[String, CdpError]fn TargetDomain::create_target(self : TargetDomain, url : String, browser_context_id : String?) -> Result[String, CdpError]fn TargetDomain::detach_from_target(self : TargetDomain, session_id : String?, target_id : String?) -> Result[Unit, CdpError]fn TargetDomain::dispose_browser_context(self : TargetDomain, browser_context_id : String) -> Result[Unit, CdpError]fn TargetDomain::get_target_info(self : TargetDomain, target_id : String?) -> Result[TargetInfo, CdpError]fn TargetDomain::set_auto_attach(self : TargetDomain, auto_attach : Bool, _wait_for_debugger_on_start : Bool) -> Unitpub struct TargetInfo {
target_id : String
target_type : String
title : String
url : String
attached : Bool
browser_context_id : String?
} derive(Debug)Browser engine for crater CSS layout engine
Dependencies