pub struct DriverSynchronousProxy { /* private fields */ }Implementations§
Source§impl DriverSynchronousProxy
impl DriverSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DriverEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DriverEvent, 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 stop(&self) -> Result<(), Error>
pub fn stop(&self) -> Result<(), Error>
Request that the Driver is Stopped.
After stopping the driver instance, the server should close this connection with an epitath. This signals that the Driver has been stopped.
Sourcepub fn health_check(
&self,
request: HealthCheckRequest,
___deadline: MonotonicInstant,
) -> Result<DriverHealthCheckResult, Error>
pub fn health_check( &self, request: HealthCheckRequest, ___deadline: MonotonicInstant, ) -> Result<DriverHealthCheckResult, Error>
Requests the driver to perform a self-diagnostic check.
The Driver Host enforces per-level deadlines (PING 250ms, FAST 2s,
DEEP 2min) and fails the call with TIMEOUT if the driver does not
reply in time. A check is only forwarded while the driver is resumed;
otherwise the Driver Host replies INVALID_STATE itself, and a check
whose completion is observed while the driver is no longer resumed is
also answered INVALID_STATE. A driver built against an SDK without
HealthCheck replies NOT_SUPPORTED; other transport failures reply
INTERNAL_ERROR. In-flight checks are answered with INVALID_STATE
when Stop is received.
Trait Implementations§
Source§impl Debug for DriverSynchronousProxy
impl Debug for DriverSynchronousProxy
Source§impl From<Channel> for DriverSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for DriverSynchronousProxy
Source§impl From<DriverSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<DriverSynchronousProxy> for NullableHandle
Source§fn from(value: DriverSynchronousProxy) -> Self
fn from(value: DriverSynchronousProxy) -> Self
Source§impl FromClient for DriverSynchronousProxy
Available on Fuchsia only.
impl FromClient for DriverSynchronousProxy
Source§type Protocol = DriverMarker
type Protocol = DriverMarker
Source§fn from_client(value: ClientEnd<DriverMarker>) -> Self
fn from_client(value: ClientEnd<DriverMarker>) -> Self
Source§impl SynchronousProxy for DriverSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for DriverSynchronousProxy
Source§type Proxy = DriverProxy
type Proxy = DriverProxy
Source§type Protocol = DriverMarker
type Protocol = DriverMarker
Proxy controls.