pub struct TripPointSynchronousProxy { /* private fields */ }Implementations§
Source§impl TripPointSynchronousProxy
impl TripPointSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TripPointEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TripPointEvent, 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_trip_point_descriptors(
&self,
___deadline: MonotonicInstant,
) -> Result<TripPointGetTripPointDescriptorsResult, Error>
pub fn get_trip_point_descriptors( &self, ___deadline: MonotonicInstant, ) -> Result<TripPointGetTripPointDescriptorsResult, Error>
Returns N descriptors. Each descriptor describes one trip point supported by the hardware.
Sourcepub fn set_trip_points(
&self,
descriptors: &[TripPointDescriptor],
___deadline: MonotonicInstant,
) -> Result<TripPointSetTripPointsResult, Error>
pub fn set_trip_points( &self, descriptors: &[TripPointDescriptor], ___deadline: MonotonicInstant, ) -> Result<TripPointSetTripPointsResult, Error>
Configure 0 or more hardware trip points.
Sourcepub fn wait_for_any_trip_point(
&self,
___deadline: MonotonicInstant,
) -> Result<TripPointWaitForAnyTripPointResult, Error>
pub fn wait_for_any_trip_point( &self, ___deadline: MonotonicInstant, ) -> Result<TripPointWaitForAnyTripPointResult, Error>
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.
Trait Implementations§
Source§impl Debug for TripPointSynchronousProxy
impl Debug for TripPointSynchronousProxy
Source§impl From<Channel> for TripPointSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for TripPointSynchronousProxy
Available on Fuchsia only.
Source§impl From<TripPointSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<TripPointSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: TripPointSynchronousProxy) -> Self
fn from(value: TripPointSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for TripPointSynchronousProxy
Available on Fuchsia only.
impl FromClient for TripPointSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = TripPointMarker
type Protocol = TripPointMarker
The protocol.
Source§fn from_client(value: ClientEnd<TripPointMarker>) -> Self
fn from_client(value: ClientEnd<TripPointMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for TripPointSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for TripPointSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = TripPointProxy
type Proxy = TripPointProxy
The async proxy for the same protocol.
Source§type Protocol = TripPointMarker
type Protocol = TripPointMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for TripPointSynchronousProxy
impl RefUnwindSafe for TripPointSynchronousProxy
impl Send for TripPointSynchronousProxy
impl Sync for TripPointSynchronousProxy
impl Unpin for TripPointSynchronousProxy
impl UnwindSafe for TripPointSynchronousProxy
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