FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(root: &Ref<TopLevel>, target_id: impl Into<String>) -> Self
    

    Source

    handle

    fn handle(self: &mut Self, message: &str) -> Vec<Value>
    

    Source

    poll

    fn poll(self: &mut Self) -> Vec<Value>
    

    Poll on the UI thread, typically every 100 ms. Tree changes invalidate the document.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same
    • VZip<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.