pub struct DriverConfigSynchronousProxy { /* private fields */ }Implementations§
Source§impl DriverConfigSynchronousProxy
impl DriverConfigSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DriverConfigEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DriverConfigEvent, 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 set_polling_config(
&self,
payload: &PollingConfig,
___deadline: MonotonicInstant,
) -> Result<DriverConfigSetPollingConfigResult, Error>
pub fn set_polling_config( &self, payload: &PollingConfig, ___deadline: MonotonicInstant, ) -> Result<DriverConfigSetPollingConfigResult, Error>
Overrides polling configuration parameters. Any omitted fields in PollingConfig
remain unchanged.
Returns ZX_ERR_INVALID_ARGS if poll_interval is less than MIN_POLL_INTERVAL or
polls_per_series_entry == 0.
Sourcepub fn get_polling_config(
&self,
___deadline: MonotonicInstant,
) -> Result<DriverConfigGetPollingConfigResult, Error>
pub fn get_polling_config( &self, ___deadline: MonotonicInstant, ) -> Result<DriverConfigGetPollingConfigResult, Error>
Retrieves the current polling configuration parameters.
Sourcepub fn reset_polling_config(
&self,
___deadline: MonotonicInstant,
) -> Result<DriverConfigResetPollingConfigResult, Error>
pub fn reset_polling_config( &self, ___deadline: MonotonicInstant, ) -> Result<DriverConfigResetPollingConfigResult, Error>
Resets polling configuration parameters to the driver’s default values.
Trait Implementations§
Source§impl Debug for DriverConfigSynchronousProxy
impl Debug for DriverConfigSynchronousProxy
Source§impl From<Channel> for DriverConfigSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for DriverConfigSynchronousProxy
Available on Fuchsia only.
Source§impl From<DriverConfigSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<DriverConfigSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: DriverConfigSynchronousProxy) -> Self
fn from(value: DriverConfigSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for DriverConfigSynchronousProxy
Available on Fuchsia only.
impl FromClient for DriverConfigSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = DriverConfigMarker
type Protocol = DriverConfigMarker
The protocol.
Source§fn from_client(value: ClientEnd<DriverConfigMarker>) -> Self
fn from_client(value: ClientEnd<DriverConfigMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for DriverConfigSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for DriverConfigSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = DriverConfigProxy
type Proxy = DriverConfigProxy
The async proxy for the same protocol.
Source§type Protocol = DriverConfigMarker
type Protocol = DriverConfigMarker
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 DriverConfigSynchronousProxy
impl RefUnwindSafe for DriverConfigSynchronousProxy
impl Send for DriverConfigSynchronousProxy
impl Sync for DriverConfigSynchronousProxy
impl Unpin for DriverConfigSynchronousProxy
impl UnsafeUnpin for DriverConfigSynchronousProxy
impl UnwindSafe for DriverConfigSynchronousProxy
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