pub enum WatcherRequest {
GetCrash {
payload: WatcherGetCrashRequest,
responder: WatcherGetCrashResponder,
},
GetCrashEvent {
responder: WatcherGetCrashEventResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: WatcherControlHandle,
method_type: MethodType,
},
}Variants§
GetCrash
Returns crashes as they occur. Each subsequent call will return a new crash.
GetCrashEvent
Returns an event which is has ZX_USER_SIGNAL_0 asserted when a new crash is available.
Fields
§
responder: WatcherGetCrashEventResponder#[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: WatcherControlHandle§
method_type: MethodTypeImplementations§
Source§impl WatcherRequest
impl WatcherRequest
pub fn into_get_crash( self, ) -> Option<(WatcherGetCrashRequest, WatcherGetCrashResponder)>
pub fn into_get_crash_event(self) -> Option<WatcherGetCrashEventResponder>
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 WatcherRequest
impl !RefUnwindSafe for WatcherRequest
impl Send for WatcherRequest
impl Sync for WatcherRequest
impl Unpin for WatcherRequest
impl UnsafeUnpin for WatcherRequest
impl !UnwindSafe for WatcherRequest
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