pub enum Event {
Trace {
timestamp_ms: u64,
direction: Direction,
summary: String,
raw_hex: Option<String>,
redacted: bool,
},
Property {
key: u32,
name: Option<&'static str>,
value_hex: String,
decoded: Option<DecodedValue>,
unsolicited: bool,
},
PropertyError {
key: u32,
name: Option<&'static str>,
status: String,
},
CommandResult {
command: &'static str,
status: String,
success: bool,
},
StreamRx {
timestamp_ms: u64,
stream: u32,
data_hex: String,
metadata: Option<RxMetadata>,
metadata_error: Option<String>,
packet: Option<PacketSummary>,
packet_error: Option<String>,
},
Attached {
protocol_major: u8,
protocol_minor: u8,
dev_version: String,
boot_status: String,
capabilities: Vec<Capability>,
phy_mtu: u16,
},
ProtocolError {
message: String,
},
Detached {
reason: String,
},
}Expand description
Structured engine output. The JSON representation is the public browser contract and can be reused by other web frontends.
Variants§
Trace
Fields
Property
Fields
§
decoded: Option<DecodedValue>PropertyError
CommandResult
StreamRx
Attached
Fields
§
capabilities: Vec<Capability>ProtocolError
Detached
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)