pub enum TripPointRequest {
GetTripPointDescriptors {
responder: TripPointGetTripPointDescriptorsResponder,
},
SetTripPoints {
descriptors: Vec<TripPointDescriptor>,
responder: TripPointSetTripPointsResponder,
},
WaitForAnyTripPoint {
responder: TripPointWaitForAnyTripPointResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: TripPointControlHandle,
method_type: MethodType,
},
}Expand description
The server should enforce that only one client may be connected and configuring trip points at any given time. If a second client attempts to configure trip points while a client is already connected, the server should return ZX_ERR_ALREADY_BOUND to indicate that it is busy.
Variants§
GetTripPointDescriptors
Returns N descriptors. Each descriptor describes one trip point supported by the hardware.
Fields
§
responder: TripPointGetTripPointDescriptorsResponderSetTripPoints
Configure 0 or more hardware trip points.
WaitForAnyTripPoint
Hanging get API that returns when any configured trip point has been crossed. Returns ZX_ERR_BAD_STATE if no trip points have been configured or if all configured trip points are cleared by a call to SetTripPoints.
Fields
§
responder: TripPointWaitForAnyTripPointResponder#[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.
§
control_handle: TripPointControlHandle§
method_type: MethodTypeImplementations§
Source§impl TripPointRequest
impl TripPointRequest
pub fn into_get_trip_point_descriptors( self, ) -> Option<TripPointGetTripPointDescriptorsResponder>
pub fn into_set_trip_points( self, ) -> Option<(Vec<TripPointDescriptor>, TripPointSetTripPointsResponder)>
pub fn into_wait_for_any_trip_point( self, ) -> Option<TripPointWaitForAnyTripPointResponder>
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 TripPointRequest
impl !RefUnwindSafe for TripPointRequest
impl Send for TripPointRequest
impl Sync for TripPointRequest
impl Unpin for TripPointRequest
impl !UnwindSafe for TripPointRequest
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