Home
last modified time | relevance | path

Searched refs:try_from (Results 1 - 20 of 20) sorted by relevance

/base/security/asset/interfaces/inner_kits/c/src/
H A Dlib.rs44 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 Dhsd.rs33 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 Dlib.rs50 match HashSignedData::try_from(hsd.unwrap()) {
/base/msdp/device_status/rust/utils/src/
H A Dmacros.rs41 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 Derrors.rs49 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() functions
/base/security/asset/services/common/src/
H A Dprocess_info.rs126 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 Didentity.rs67 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 Dmacros.rs43 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 Dextension.rs110 T::try_from(*num) in get_enum_attr()
/base/security/asset/services/crypto_manager/src/
H A Dcrypto.rs84 _ => 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 Dsecret_key.rs226 _ => 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 Derror.rs27 let code = HttpErrorCode::try_from(inner.GetErrorCode())
/base/msdp/device_status/rust/subsystem/device_profile/sys/src/
H A Ddevice_profile.rs66 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 Dargument_check.rs73 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 Dlib.rs118 match BasicParamID::try_from(id) { in control()
/base/security/asset/interfaces/inner_kits/rs/src/
H A Dlib.rs116 log_throw_error!(ErrCode::try_from(e)?, "{}", msg) in send_request()
/base/msdp/device_status/rust/ipc/client/src/
H A Dlib.rs48 match <dyn IDeviceStatus as FromRemoteObj>::try_from(obj) { in connect()
/base/security/asset/frameworks/ipc/src/
H A Dlib.rs88 let tag = Tag::try_from(tag)?; in deserialize_map()
/base/security/asset/services/db_operator/src/
H A Ddatabase_file_upgrade.rs100 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 Doperation_query.rs127 let tag = Tag::try_from(*order_by).expect("Tag::ReturnOrderBy has been verified"); in get_query_options()

Completed in 8 milliseconds