pub struct ReaderProxy { /* private fields */ }Implementations§
Source§impl ReaderProxy
impl ReaderProxy
Sourcepub fn take_event_stream(&self) -> ReaderEventStream
pub fn take_event_stream(&self) -> ReaderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch_auto_brightness(
&self,
) -> QueryResponseFut<bool, DefaultFuchsiaResourceDialect> ⓘ
pub fn watch_auto_brightness( &self, ) -> QueryResponseFut<bool, DefaultFuchsiaResourceDialect> ⓘ
Requests the current auto-brightness mode. This call implements the Hanging Get protocol.
Sourcepub fn watch_current_brightness(
&self,
) -> QueryResponseFut<f32, DefaultFuchsiaResourceDialect> ⓘ
pub fn watch_current_brightness( &self, ) -> QueryResponseFut<f32, DefaultFuchsiaResourceDialect> ⓘ
Gets the current brightness in the range 0.0 to 1.0. This result is valid for both manual and auto-brightness modes and is typically used to show the current brightness on a slider. This call implements the Hanging Get protocol.
Sourcepub fn watch_auto_brightness_adjustment(
&self,
) -> QueryResponseFut<f32, DefaultFuchsiaResourceDialect> ⓘ
pub fn watch_auto_brightness_adjustment( &self, ) -> QueryResponseFut<f32, DefaultFuchsiaResourceDialect> ⓘ
Gets the current auto brightness adjustment. This call implements the Hanging Get protocol.
Sourcepub fn get_max_absolute_brightness(
&self,
) -> QueryResponseFut<ReaderGetMaxAbsoluteBrightnessResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_max_absolute_brightness( &self, ) -> QueryResponseFut<ReaderGetMaxAbsoluteBrightnessResult, DefaultFuchsiaResourceDialect> ⓘ
Gets the maximum supported backlight brightness in nits, if known.
Trait Implementations§
Source§impl Clone for ReaderProxy
impl Clone for ReaderProxy
Source§fn clone(&self) -> ReaderProxy
fn clone(&self) -> ReaderProxy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReaderProxy
impl Debug for ReaderProxy
Source§impl Proxy for ReaderProxy
impl Proxy for ReaderProxy
Source§type Protocol = ReaderMarker
type Protocol = ReaderMarker
The protocol which this
Proxy controls.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
Source§impl ReaderProxyInterface for ReaderProxy
impl ReaderProxyInterface for ReaderProxy
type WatchAutoBrightnessResponseFut = QueryResponseFut<bool>
type WatchCurrentBrightnessResponseFut = QueryResponseFut<f32>
type WatchAutoBrightnessAdjustmentResponseFut = QueryResponseFut<f32>
type GetMaxAbsoluteBrightnessResponseFut = QueryResponseFut<Result<f64, i32>>
fn watch_auto_brightness(&self) -> Self::WatchAutoBrightnessResponseFut
fn watch_current_brightness(&self) -> Self::WatchCurrentBrightnessResponseFut
fn watch_auto_brightness_adjustment( &self, ) -> Self::WatchAutoBrightnessAdjustmentResponseFut
fn get_max_absolute_brightness( &self, ) -> Self::GetMaxAbsoluteBrightnessResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for ReaderProxy
impl !UnwindSafe for ReaderProxy
impl Freeze for ReaderProxy
impl Send for ReaderProxy
impl Sync for ReaderProxy
impl Unpin for ReaderProxy
impl UnsafeUnpin for ReaderProxy
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,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.