pub enum DebugRequest {
Trip {
index: u32,
responder: DebugTripResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: DebugControlHandle,
method_type: MethodType,
},
}Expand description
Debug protocol to fake tripping trip points.
Variants§
Trip
Trips the trip point with index if it exists. If not, returns ZX_ERR_NOT_FOUND. Note that for OneShot trip points, if it is tripped, it gets cleared. Tripping manually with this method will have the same effect.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DebugControlHandle§
method_type: MethodTypeImplementations§
Source§impl DebugRequest
impl DebugRequest
pub fn into_trip(self) -> Option<(u32, DebugTripResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugRequest
impl !RefUnwindSafe for DebugRequest
impl Send for DebugRequest
impl Sync for DebugRequest
impl Unpin for DebugRequest
impl !UnwindSafe for DebugRequest
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
Mutably borrows from an owned value. Read more