pub enum DevToolsProtocol {
Message(Vec<u8>),
Event {
method: String,
params: Vec<u8>,
},
MethodResult {
message_id: i32,
success: bool,
result: Vec<u8>,
},
}Expand description
A Chrome DevTools Protocol notification observed on a native browser.
Observers see the whole browser, including requests issued by the runtime itself and by other callers, so nothing here is scoped to one producer. No notification names a browser, and none has to: an observer is registered on one native browser and never receives another’s traffic — a CEF-owned popup is a separate browser, observed only by the runtime’s own internal observer.
Variants§
Message(Vec<u8>)
The raw agent message, before it is classified as an event or a result.
Event
An agent event. Events are unsolicited and carry no request identifier.
MethodResult
The result of one request.
message_id correlates with the id of the request that produced it.
Compare it against an identifier obtained from
allocate_devtools_message_id;
a result whose identifier you did not allocate answers someone else’s
request. Numeric correlation does not authorize a browser or document.
Trait Implementations§
Source§impl Clone for DevToolsProtocol
impl Clone for DevToolsProtocol
Auto Trait Implementations§
impl Freeze for DevToolsProtocol
impl RefUnwindSafe for DevToolsProtocol
impl Send for DevToolsProtocol
impl Sync for DevToolsProtocol
impl Unpin for DevToolsProtocol
impl UnsafeUnpin for DevToolsProtocol
impl UnwindSafe for DevToolsProtocol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.