pub struct SetUiFacade { /* private fields */ }
Expand description
Facade providing access to SetUi interfaces.
Implementations§
Source§impl SetUiFacade
impl SetUiFacade
pub fn new() -> SetUiFacade
Sourcepub async fn set_network(&self, args: Value) -> Result<Value, Error>
pub async fn set_network(&self, args: Value) -> Result<Value, Error>
Sets network option used by device setup. Same action as choosing “Setup over Ethernet [enabled|disabled]” in “Developer options”
args: accepted args are “ethernet” or “wifi”. ex: {“params”: “ethernet”}
Sourcepub async fn get_network_setting(&self) -> Result<Value, Error>
pub async fn get_network_setting(&self) -> Result<Value, Error>
Reports the network option used for setup
Returns either “ethernet”, “wifi” or “unknown”.
Sourcepub async fn set_intl_setting(&self, args: Value) -> Result<Value, Error>
pub async fn set_intl_setting(&self, args: Value) -> Result<Value, Error>
Sets Internationalization values.
Input should is expected to be type IntlInfo in json. Example: { “hour_cycle”:“H12”, “locales”:[{“id”:“he-FR”}], “temperature_unit”:“Celsius”, “time_zone_id”:“UTC” }
Sourcepub async fn get_intl_setting(&self) -> Result<Value, Error>
pub async fn get_intl_setting(&self) -> Result<Value, Error>
Reads the Internationalization setting.
Returns IntlInfo in json.
Sourcepub async fn is_mic_muted(&self) -> Result<Value, Error>
pub async fn is_mic_muted(&self) -> Result<Value, Error>
Reports the microphone DeviceState.
Returns true if mic is muted or false if mic is unmuted.
Sourcepub async fn set_brightness(&self, args: Value) -> Result<Value, Error>
pub async fn set_brightness(&self, args: Value) -> Result<Value, Error>
Sets the display brightness via fuchsia.settings.Display.Set
.
§Arguments
args
: JSON value containing the desired brightness level as f32.
Trait Implementations§
Source§impl Debug for SetUiFacade
impl Debug for SetUiFacade
Source§impl Facade for SetUiFacade
impl Facade for SetUiFacade
Source§fn handle_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_request<'life0, 'async_trait>(
&'life0 self,
method: String,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Asynchronously handle the incoming request for the given method and arguments, returning a
future object representing the pending operation.
Auto Trait Implementations§
impl Freeze for SetUiFacade
impl !RefUnwindSafe for SetUiFacade
impl Send for SetUiFacade
impl Sync for SetUiFacade
impl Unpin for SetUiFacade
impl !UnwindSafe for SetUiFacade
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, 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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> OptionalField for Twhere
T: ?Sized,
impl<T> OptionalField for Twhere
T: ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.