[−][src]Trait subor_rs::setting_system_s_d_k_services::TSettingSystemServiceSyncClient
Required methods
fn get_setting_item(&mut self, id: String) -> Result<SettingItem>
Get a setting data of the module.
fn get_setting_items(
&mut self,
category: String,
include_children: bool
) -> Result<Vec<SettingItem>>
&mut self,
category: String,
include_children: bool
) -> Result<Vec<SettingItem>>
Get a list of setting data of the module.
fn search_setting_items(
&mut self,
filter_json: String
) -> Result<BTreeMap<String, SettingSearchResult>>
&mut self,
filter_json: String
) -> Result<BTreeMap<String, SettingSearchResult>>
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.
fn get_category_node(&mut self) -> Result<SettingTree>
Get settings and categories in a tree
fn get_child_node(
&mut self,
parent: String,
node_type: NodeType,
param: String,
tags: Vec<String>
) -> Result<NodeList>
&mut self,
parent: String,
node_type: NodeType,
param: String,
tags: Vec<String>
) -> Result<NodeList>
Get child nodes of specified setting item or setting category
fn set_setting_item(&mut self, key: String, val: String) -> Result<bool>
Set the specified setting's "dataValue" with the new value
fn set_setting_items(
&mut self,
key_values: BTreeMap<String, String>
) -> Result<i32>
&mut self,
key_values: BTreeMap<String, String>
) -> Result<i32>
Set a set of settings' "dataValue"
fn restore_default(
&mut self,
module_name: String,
category: String
) -> Result<bool>
&mut self,
module_name: String,
category: String
) -> Result<bool>
Restore a module setting to default
fn restore_user_default(
&mut self,
user_id: String,
module_name: String,
category: String
) -> Result<bool>
&mut self,
user_id: String,
module_name: String,
category: String
) -> Result<bool>
@RestoreUserDefault_Summary
fn update_module_version(&mut self, module_name: String) -> Result<bool>
Update the module settings from an older version to the latest one
fn set_user_app_data(
&mut self,
user_id: String,
category: String,
setting_items: BTreeMap<String, SettingValue>
) -> Result<i32>
&mut self,
user_id: String,
category: String,
setting_items: BTreeMap<String, SettingValue>
) -> Result<i32>
@SetUserAppData_Summary
fn get_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<AppData>
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<AppData>
@GetUserAppData_Summary
fn remove_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<i32>
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<i32>
@RemoveUserAppData_Summary
fn setting_item_notify(&mut self, key: String, contents: JSON) -> Result<bool>
Notify layer0 that a setting item has specific event
fn get_network_adapter_settings(&mut self) -> Result<NetworkSettings>
fn get_lan_network_name(&mut self) -> Result<String>
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>
&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>
fn set_network_proxy(
&mut self,
proxy_server: String,
proxy_port: String
) -> Result<bool>
&mut self,
proxy_server: String,
proxy_port: String
) -> Result<bool>
fn connect_to_wifi(&mut self, profile_name: String, key: String) -> Result<bool>
fn connect_to_appointed_wifi(
&mut self,
profile_name: String,
auth: String,
ciper: String,
key_type: String,
key: String
) -> Result<bool>
&mut self,
profile_name: String,
auth: String,
ciper: String,
key_type: String,
key: String
) -> Result<bool>
fn get_network_settings(&mut self) -> Result<RuyiNetworkSettings>
fn get_network_status(&mut self) -> Result<RuyiNetworkStatus>
fn ruyi_test_network(&mut self) -> Result<RuyiNetworkTestResult>
fn ruyi_start_network_speed_test(&mut self, userindex: i32) -> Result<bool>
fn ruyi_stop_network_speed_test(&mut self, userindex: i32) -> Result<bool>
fn get_available_wifi(&mut self) -> Result<Vec<WifiEntity>>
fn disconnect_wifi(&mut self) -> Result<bool>
fn discover_bluetooth_device(&mut self) -> Result<bool>
fn connect_bluetooth_device(
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
fn disconnect_bluetooth_device(
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
fn remove_bluetooth_device(
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
Implementors
impl<C: TThriftClient + TSettingSystemServiceSyncClientMarker> TSettingSystemServiceSyncClient for C
[src]
fn get_setting_item(&mut self, id: String) -> Result<SettingItem>
[src]
fn get_setting_items(
&mut self,
category: String,
include_children: bool
) -> Result<Vec<SettingItem>>
[src]
&mut self,
category: String,
include_children: bool
) -> Result<Vec<SettingItem>>
fn search_setting_items(
&mut self,
filter_json: String
) -> Result<BTreeMap<String, SettingSearchResult>>
[src]
&mut self,
filter_json: String
) -> Result<BTreeMap<String, SettingSearchResult>>
fn get_category_node(&mut self) -> Result<SettingTree>
[src]
fn get_child_node(
&mut self,
parent: String,
node_type: NodeType,
param: String,
tags: Vec<String>
) -> Result<NodeList>
[src]
&mut self,
parent: String,
node_type: NodeType,
param: String,
tags: Vec<String>
) -> Result<NodeList>
fn set_setting_item(&mut self, key: String, val: String) -> Result<bool>
[src]
fn set_setting_items(
&mut self,
key_values: BTreeMap<String, String>
) -> Result<i32>
[src]
&mut self,
key_values: BTreeMap<String, String>
) -> Result<i32>
fn restore_default(
&mut self,
module_name: String,
category: String
) -> Result<bool>
[src]
&mut self,
module_name: String,
category: String
) -> Result<bool>
fn restore_user_default(
&mut self,
user_id: String,
module_name: String,
category: String
) -> Result<bool>
[src]
&mut self,
user_id: String,
module_name: String,
category: String
) -> Result<bool>
fn update_module_version(&mut self, module_name: String) -> Result<bool>
[src]
fn set_user_app_data(
&mut self,
user_id: String,
category: String,
setting_items: BTreeMap<String, SettingValue>
) -> Result<i32>
[src]
&mut self,
user_id: String,
category: String,
setting_items: BTreeMap<String, SettingValue>
) -> Result<i32>
fn get_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<AppData>
[src]
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<AppData>
fn remove_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<i32>
[src]
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>
) -> Result<i32>
fn setting_item_notify(&mut self, key: String, contents: JSON) -> Result<bool>
[src]
fn get_network_adapter_settings(&mut self) -> Result<NetworkSettings>
[src]
fn get_lan_network_name(&mut self) -> Result<String>
[src]
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>
[src]
&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>
fn set_network_proxy(
&mut self,
proxy_server: String,
proxy_port: String
) -> Result<bool>
[src]
&mut self,
proxy_server: String,
proxy_port: String
) -> Result<bool>
fn connect_to_wifi(&mut self, profile_name: String, key: String) -> Result<bool>
[src]
fn connect_to_appointed_wifi(
&mut self,
profile_name: String,
auth: String,
ciper: String,
key_type: String,
key: String
) -> Result<bool>
[src]
&mut self,
profile_name: String,
auth: String,
ciper: String,
key_type: String,
key: String
) -> Result<bool>
fn get_network_settings(&mut self) -> Result<RuyiNetworkSettings>
[src]
fn get_network_status(&mut self) -> Result<RuyiNetworkStatus>
[src]
fn ruyi_test_network(&mut self) -> Result<RuyiNetworkTestResult>
[src]
fn ruyi_start_network_speed_test(&mut self, userindex: i32) -> Result<bool>
[src]
fn ruyi_stop_network_speed_test(&mut self, userindex: i32) -> Result<bool>
[src]
fn get_available_wifi(&mut self) -> Result<Vec<WifiEntity>>
[src]
fn disconnect_wifi(&mut self) -> Result<bool>
[src]
fn discover_bluetooth_device(&mut self) -> Result<bool>
[src]
fn connect_bluetooth_device(
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
[src]
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
fn disconnect_bluetooth_device(
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
[src]
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
fn remove_bluetooth_device(
&mut self,
device_name: String,
device_address: String
) -> Result<bool>
[src]
&mut self,
device_name: String,
device_address: String
) -> Result<bool>