pub struct VregSynchronousProxy { /* private fields */ }Implementations§
Source§impl VregSynchronousProxy
impl VregSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<VregEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<VregEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn set_voltage_step( &self, step: u32, ___deadline: MonotonicInstant, ) -> Result<VregSetVoltageStepResult, Error>
pub fn get_voltage_step( &self, ___deadline: MonotonicInstant, ) -> Result<VregGetVoltageStepResult, Error>
pub fn set_state( &self, payload: &VregSetStateRequest, ___deadline: MonotonicInstant, ) -> Result<VregSetStateResult, Error>
pub fn enable( &self, ___deadline: MonotonicInstant, ) -> Result<VregEnableResult, Error>
pub fn disable( &self, ___deadline: MonotonicInstant, ) -> Result<VregDisableResult, Error>
pub fn get_regulator_params( &self, ___deadline: MonotonicInstant, ) -> Result<VregGetRegulatorParamsResult, Error>
Trait Implementations§
Source§impl Debug for VregSynchronousProxy
impl Debug for VregSynchronousProxy
Source§impl From<Channel> for VregSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for VregSynchronousProxy
Available on Fuchsia only.
Source§impl From<VregSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<VregSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: VregSynchronousProxy) -> Self
fn from(value: VregSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for VregSynchronousProxy
Available on Fuchsia only.
impl FromClient for VregSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = VregMarker
type Protocol = VregMarker
The protocol.
Source§fn from_client(value: ClientEnd<VregMarker>) -> Self
fn from_client(value: ClientEnd<VregMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for VregSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for VregSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = VregMarker
type Protocol = VregMarker
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 VregSynchronousProxy
impl RefUnwindSafe for VregSynchronousProxy
impl Send for VregSynchronousProxy
impl Sync for VregSynchronousProxy
impl Unpin for VregSynchronousProxy
impl UnsafeUnpin for VregSynchronousProxy
impl UnwindSafe for VregSynchronousProxy
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