CdpSession
struct · ferroui-devtools · v0.5.0
struct CdpSession
A transport-independent CDP connection to a single top-level. All calls run on its UI thread.
handle returns the response followed by any events; call poll for asynchronous events.
Members
new
fn new(root: &Ref<TopLevel>, target_id: impl Into<String>) -> Self
handle
fn handle(self: &mut Self, message: &str) -> Vec<Value>
poll
fn poll(self: &mut Self) -> Vec<Value>
Poll on the UI thread, typically every 100 ms. Tree changes invalidate the document.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSameVZip<V>CastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>Drop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.