/base/security/asset/interfaces/inner_kits/c/src/ |
H A D | lib.rs | 44 let attr_tag = match Tag::try_from((*attr).tag) { in into_map() 167 match AssetBlob::try_from(&res) { 203 match AssetResultSet::try_from(&res) { 250 fn try_from(vec: &Vec<u8>) -> Result<Self, Self::Error> { in try_from() functions 275 fn try_from(value: &Value) -> Result<Self, Self::Error> { in try_from() functions 280 Value::Bytes(v) => out.blob = AssetBlob::try_from(v)?, in try_from() 295 fn try_from(map: &AssetMap) -> Result<Self, Self::Error> { in try_from() functions 311 (*attr).value = AssetValue::try_from(value)?; in try_from() 328 fn try_from(maps: &Vec<AssetMap>) -> Result<Self, Self::Error> { in try_from() functions 341 *result = AssetResult::try_from(ma in try_from() [all...] |
/base/update/updater/services/rust/hash_signed_data/src/ |
H A D | hsd.rs | 33 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() functions 47 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() functions 54 hash_signed_data.push(SingleSignedData::try_from(single_hash_data)?); in try_from()
|
H A D | lib.rs | 50 match HashSignedData::try_from(hsd.unwrap()) {
|
/base/msdp/device_status/rust/utils/src/ |
H A D | macros.rs | 41 fn try_from(code: u32) -> std::result::Result<Self, Self::Error> { in try_from() functions 71 match $name::try_from(val) { in deserialize()
|
H A D | errors.rs | 49 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() functions
|
/base/security/asset/services/common/src/ |
H A D | process_info.rs | 126 let error = ErrCode::try_from(error as u32)?; in build() 131 let process_info_detail = match OwnerType::try_from(process_info_ffi.owner_type)? { in build() 140 owner_type: OwnerType::try_from(process_info_ffi.owner_type)?, in build()
|
/base/msdp/device_status/rust/ipc/service/src/ |
H A D | identity.rs | 67 CommonAction::try_from((code >> ACTIONSHIFT) & ACTIONMASK)
in split_action() 73 Intention::try_from((code >> INTENTIONSHIFT) & INTENTIONMASK)
in split_intention()
|
/base/security/asset/frameworks/definition/src/ |
H A D | macros.rs | 43 fn try_from(v: u32) -> std::result::Result<Self, Self::Error> { in try_from() functions 91 fn try_from(v: u32) -> std::result::Result<Self, Self::Error> { in try_from() functions
|
H A D | extension.rs | 110 T::try_from(*num) in get_enum_attr()
|
/base/security/asset/services/crypto_manager/src/ |
H A D | crypto.rs | 84 _ => Err(transfer_error_code(ErrCode::try_from(ret as u32)?)), in init_key() 112 _ => Err(transfer_error_code(ErrCode::try_from(ret as u32)?)), in exec_crypt() 135 _ => Err(transfer_error_code(ErrCode::try_from(ret as u32)?)), in encrypt() 162 _ => Err(transfer_error_code(ErrCode::try_from(ret as u32)?)), in decrypt()
|
H A D | secret_key.rs | 226 _ => Err(transfer_error_code(ErrCode::try_from(ret as u32)?)), in exists() 237 _ => Err(transfer_error_code(ErrCode::try_from(ret as u32)?)), in generate() 248 _ => Err(transfer_error_code(ErrCode::try_from(ret as u32)?)), in delete()
|
/base/request/request/pre_download/netstack_rs/src/ |
H A D | error.rs | 27 let code = HttpErrorCode::try_from(inner.GetErrorCode())
|
/base/msdp/device_status/rust/subsystem/device_profile/sys/src/ |
H A D | device_profile.rs | 66 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() functions 274 if let Ok(e) = ProfileEvent::try_from(*profile_event) { in subscribe_profile_events() 329 if let Ok(e) = ProfileEvent::try_from(*profile_event) { in unsubscribe_profile_events()
|
/base/security/asset/services/core_service/src/operations/common/ |
H A D | argument_check.rs | 73 if T::try_from(*n).is_err() { in check_enum_variant() 119 match Tag::try_from(*n) { in check_tag_range()
|
/base/msdp/device_status/rust/modules/basic/server/src/ |
H A D | lib.rs | 118 match BasicParamID::try_from(id) { in control()
|
/base/security/asset/interfaces/inner_kits/rs/src/ |
H A D | lib.rs | 116 log_throw_error!(ErrCode::try_from(e)?, "{}", msg) in send_request()
|
/base/msdp/device_status/rust/ipc/client/src/ |
H A D | lib.rs | 48 match <dyn IDeviceStatus as FromRemoteObj>::try_from(obj) { in connect()
|
/base/security/asset/frameworks/ipc/src/ |
H A D | lib.rs | 88 let tag = Tag::try_from(tag)?; in deserialize_map()
|
/base/security/asset/services/db_operator/src/ |
H A D | database_file_upgrade.rs | 100 let owner_type = OwnerType::try_from(info_map.get_num_attr(&column::OWNER_TYPE)?.to_owned())?; in get_new_db()
|
/base/security/asset/services/core_service/src/operations/ |
H A D | operation_query.rs | 127 let tag = Tag::try_from(*order_by).expect("Tag::ReturnOrderBy has been verified"); in get_query_options()
|