pub enum ExampleRequest {
GetMonotonic {
responder: ExampleGetMonotonicResponder,
},
WaitUntil {
timeout: i64,
responder: ExampleWaitUntilResponder,
},
WaitFor {
duration: i64,
responder: ExampleWaitForResponder,
},
}
Expand description
An example protocol for demonstrating fake time.
Variants§
GetMonotonic
Fields
§
responder: ExampleGetMonotonicResponder
Gets the current monotonic time.
WaitUntil
Wait until the given absolute time, then return.
WaitFor
Wait for duration
time, then return.
Implementations§
source§impl ExampleRequest
impl ExampleRequest
pub fn into_get_monotonic(self) -> Option<ExampleGetMonotonicResponder>
pub fn into_wait_until(self) -> Option<(i64, ExampleWaitUntilResponder)>
pub fn into_wait_for(self) -> Option<(i64, ExampleWaitForResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL