pub enum HealthRequest {
HealthCheck {
request: HealthCheckRequest,
responder: HealthHealthCheckResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
method_type: MethodType,
},
}Expand description
Protocol composed into Driver for performing active health checks and
receiving proactive health alerts.
Variants§
HealthCheck
Requests the driver to perform a self-diagnostic check.
The Driver Host never issues HealthCheck between Driver.Suspend and
the completion of Driver.Resume, answering
HealthCheckError.INVALID_STATE itself while the driver is suspended or
transitioning power states.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
method_type: MethodTypeImplementations§
Source§impl HealthRequest
impl HealthRequest
pub fn into_health_check( self, ) -> Option<(HealthCheckRequest, HealthHealthCheckResponder)>
pub fn new_health_check(self, request: HealthCheckRequest, tx_id: u32) -> Self
pub fn health_check_as_message( arena: Arena, request: HealthCheckRequest, tx_id: u32, ) -> Result<Message<[u8]>, Error>
pub fn read_from( bytes: &[u8], _handles: &mut [HandleInfo], ) -> Result<Self, Error>
pub fn read_from_message(message: Message<[u8]>) -> Result<(Arena, Self), Error>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Source§impl Debug for HealthRequest
impl Debug for HealthRequest
Source§impl TryFrom<Message<[u8]>> for HealthRequest
Available on crate feature driver only.Like HealthRequest::read_from_message except it drops the [Arena].
impl TryFrom<Message<[u8]>> for HealthRequest
Available on crate feature
driver only.Like HealthRequest::read_from_message except it drops the [Arena].
Auto Trait Implementations§
impl Freeze for HealthRequest
impl RefUnwindSafe for HealthRequest
impl Send for HealthRequest
impl Sync for HealthRequest
impl Unpin for HealthRequest
impl UnsafeUnpin for HealthRequest
impl UnwindSafe for HealthRequest
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