pub struct ExampleSynchronousProxy { /* private fields */ }
Implementations§
source§impl ExampleSynchronousProxy
impl ExampleSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<ExampleEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<ExampleEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn get_monotonic(&self, ___deadline: Time) -> Result<i64, Error>
pub fn get_monotonic(&self, ___deadline: Time) -> Result<i64, Error>
Gets the current monotonic time.
sourcepub fn wait_until(&self, timeout: i64, ___deadline: Time) -> Result<(), Error>
pub fn wait_until(&self, timeout: i64, ___deadline: Time) -> Result<(), Error>
Wait until the given absolute time, then return.