pub struct DriverProxy { /* private fields */ }Implementations§
Source§impl DriverProxy
impl DriverProxy
Sourcepub fn take_event_stream(&self) -> DriverEventStream
pub fn take_event_stream(&self) -> DriverEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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,
) -> QueryResponseFut<DriverHealthCheckResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn health_check( &self, request: HealthCheckRequest, ) -> QueryResponseFut<DriverHealthCheckResult, DefaultFuchsiaResourceDialect> ⓘ
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 Clone for DriverProxy
impl Clone for DriverProxy
Source§impl Debug for DriverProxy
impl Debug for DriverProxy
Source§impl DriverProxyInterface for DriverProxy
impl DriverProxyInterface for DriverProxy
type HealthCheckResponseFut = QueryResponseFut<Result<HealthCheckResponse, HealthCheckError>>
fn stop(&self) -> Result<(), Error>
fn health_check( &self, request: HealthCheckRequest, ) -> Self::HealthCheckResponseFut
Source§impl Proxy for DriverProxy
impl Proxy for DriverProxy
Source§type Protocol = DriverMarker
type Protocol = DriverMarker
Proxy controls.