Struct SettingSystemServiceSyncClient

Source
pub struct SettingSystemServiceSyncClient<IP, OP>{ /* private fields */ }

Implementations§

Source§

impl<IP, OP> SettingSystemServiceSyncClient<IP, OP>

Source

pub fn new( input_protocol: IP, output_protocol: OP, ) -> SettingSystemServiceSyncClient<IP, OP>

Trait Implementations§

Source§

impl<IP, OP> TThriftClient for SettingSystemServiceSyncClient<IP, OP>

Source§

fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol

Returns the input protocol used to read serialized Thrift messages from the Thrift server.
Source§

fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol

Returns the output protocol used to write serialized Thrift messages to the Thrift server.
Source§

fn sequence_number(&self) -> i32

Returns the sequence number of the last message written to the Thrift server. Returns 0 if no messages have been written. Sequence numbers should never be negative, and this method returns an i32 simply because the Thrift protocol encodes sequence numbers as i32 on the wire.
Source§

fn increment_sequence_number(&mut self) -> i32

Increments the sequence number, indicating that a message with that number has been sent to the Thrift server.
Source§

impl<IP, OP> TSettingSystemServiceSyncClientMarker for SettingSystemServiceSyncClient<IP, OP>

Auto Trait Implementations§

§

impl<IP, OP> Freeze for SettingSystemServiceSyncClient<IP, OP>
where IP: Freeze, OP: Freeze,

§

impl<IP, OP> RefUnwindSafe for SettingSystemServiceSyncClient<IP, OP>

§

impl<IP, OP> Send for SettingSystemServiceSyncClient<IP, OP>
where IP: Send, OP: Send,

§

impl<IP, OP> Sync for SettingSystemServiceSyncClient<IP, OP>
where IP: Sync, OP: Sync,

§

impl<IP, OP> Unpin for SettingSystemServiceSyncClient<IP, OP>
where IP: Unpin, OP: Unpin,

§

impl<IP, OP> UnwindSafe for SettingSystemServiceSyncClient<IP, OP>
where IP: UnwindSafe, OP: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<C> TSettingSystemServiceSyncClient for C

Source§

fn get_setting_item(&mut self, id: String) -> Result<SettingItem, Error>

Get a setting data of the module.
Source§

fn get_setting_items( &mut self, category: String, include_children: bool, ) -> Result<Vec<SettingItem>, Error>

Get a list of setting data of the module.
Source§

fn search_setting_items( &mut self, filter_json: String, ) -> Result<BTreeMap<String, SettingSearchResult>, Error>

Search a set of settings using a json format string. According to the format of json string your write, searching can be separated to 3 types: simple search, lambda search and complicated search. And each of they can be combined with the other.
Source§

fn get_category_node(&mut self) -> Result<SettingTree, Error>

Get settings and categories in a tree
Source§

fn get_child_node( &mut self, parent: String, node_type: NodeType, param: String, tags: Vec<String>, ) -> Result<NodeList, Error>

Get child nodes of specified setting item or setting category
Source§

fn set_setting_item(&mut self, key: String, val: String) -> Result<bool, Error>

Set the specified setting’s “dataValue” with the new value
Source§

fn set_setting_items( &mut self, key_values: BTreeMap<String, String>, ) -> Result<i32, Error>

Set a set of settings’ “dataValue”
Source§

fn restore_default( &mut self, module_name: String, category: String, ) -> Result<bool, Error>

Restore a module setting to default
Source§

fn restore_user_default( &mut self, user_id: String, module_name: String, category: String, ) -> Result<bool, Error>

@RestoreUserDefault_Summary
Source§

fn update_module_version(&mut self, module_name: String) -> Result<bool, Error>

Update the module settings from an older version to the latest one
Source§

fn set_user_app_data( &mut self, user_id: String, category: String, setting_items: BTreeMap<String, SettingValue>, ) -> Result<i32, Error>

@SetUserAppData_Summary
Source§

fn get_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<AppData, Error>

@GetUserAppData_Summary
Source§

fn remove_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<i32, Error>

@RemoveUserAppData_Summary
Source§

fn setting_item_notify( &mut self, key: String, contents: String, ) -> Result<bool, Error>

Notify layer0 that a setting item has specific event
Source§

fn get_network_adapter_settings(&mut self) -> Result<NetworkSettings, Error>

Source§

fn get_lan_network_name(&mut self) -> Result<String, Error>

Source§

fn set_network_settings( &mut self, is_w_lan: bool, enable_d_h_c_p: bool, ip_address: String, sub_mask: String, gateway: String, main_d_n_s: String, sub_d_n_s: String, ) -> Result<bool, Error>

Source§

fn set_network_proxy( &mut self, proxy_server: String, proxy_port: String, ) -> Result<bool, Error>

Source§

fn connect_to_wifi( &mut self, profile_name: String, key: String, ) -> Result<bool, Error>

Source§

fn connect_to_appointed_wifi( &mut self, profile_name: String, auth: String, ciper: String, key_type: String, key: String, ) -> Result<bool, Error>

Source§

fn get_network_settings(&mut self) -> Result<RuyiNetworkSettings, Error>

Source§

fn get_network_status(&mut self) -> Result<RuyiNetworkStatus, Error>

Source§

fn ruyi_test_network(&mut self) -> Result<RuyiNetworkTestResult, Error>

Source§

fn ruyi_start_network_speed_test( &mut self, userindex: i32, ) -> Result<bool, Error>

Source§

fn ruyi_stop_network_speed_test( &mut self, userindex: i32, ) -> Result<bool, Error>

Source§

fn get_available_wifi(&mut self) -> Result<Vec<WifiEntity>, Error>

Source§

fn disconnect_wifi(&mut self) -> Result<bool, Error>

Source§

fn discover_bluetooth_device(&mut self) -> Result<bool, Error>

Source§

fn connect_bluetooth_device( &mut self, device_name: String, device_address: String, ) -> Result<bool, Error>

Source§

fn disconnect_bluetooth_device( &mut self, device_name: String, device_address: String, ) -> Result<bool, Error>

Source§

fn remove_bluetooth_device( &mut self, device_name: String, device_address: String, ) -> Result<bool, Error>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Err = <U as TryFrom<T>>::Err

Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>