pub struct IioProxy { /* private fields */ }
Implementations§
Source§impl IioProxy
impl IioProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.qcom.hvdcpopti/Iio.
Sourcepub fn take_event_stream(&self) -> IioEventStream
pub fn take_event_stream(&self) -> IioEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_iio_value(
&self,
label: &str,
) -> QueryResponseFut<IioGetIioValueResult, DefaultFuchsiaResourceDialect>
pub fn get_iio_value( &self, label: &str, ) -> QueryResponseFut<IioGetIioValueResult, DefaultFuchsiaResourceDialect>
Gets Industrial I/O (IIO) reading value. Values available depend on what the server supports. May overlap with other configs in fuchsia.power.battery, but will be cleaned up with sysfs cleanup.
Trait Implementations§
Source§impl IioProxyInterface for IioProxy
impl IioProxyInterface for IioProxy
type GetIioValueResponseFut = QueryResponseFut<Result<i32, i32>>
fn get_iio_value(&self, label: &str) -> Self::GetIioValueResponseFut
Source§impl Proxy for IioProxy
impl Proxy for IioProxy
Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for IioProxy
impl !RefUnwindSafe for IioProxy
impl Send for IioProxy
impl Sync for IioProxy
impl Unpin for IioProxy
impl !UnwindSafe for IioProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
Converts from a client.