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
Gets the current monotonic time.
Fields
§
responder: ExampleGetMonotonicResponder
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExampleRequest
impl !RefUnwindSafe for ExampleRequest
impl Send for ExampleRequest
impl Sync for ExampleRequest
impl Unpin for ExampleRequest
impl !UnwindSafe for ExampleRequest
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