Searched refs:try_into (Results 1 – 8 of 8) sorted by relevance
109 let mtime = TimeVal::seconds(mtime.as_secs().try_into().unwrap()); in test_had_factory_reset_since_id_rotation()113 let atime = TimeVal::seconds(atime.as_secs().try_into().unwrap()); in test_had_factory_reset_since_id_rotation()
330 buffer[Self::LENGTH_OFFSET..Self::LENGTH_OFFSET + 4].try_into().unwrap(), in new_from_stream()383 value: BlobValue::Decrypted(value.try_into().context("In new_from_stream.")?), in new_from_stream()1110 data.try_into() in load_super_key()1223 &BlobValue::Decrypted(REAL_LEGACY_BLOB_PAYLOAD.try_into().unwrap()) in read_golden_key_blob_test()1258 assert_eq!(blob.value(), &BlobValue::Decrypted(DECRYPTED_PAYLOAD.try_into().unwrap())); in read_aes_gcm_encrypted_key_blob_test()1372 assert_eq!(value, BlobValue::Decrypted(LOADED_USRPKEY_NON_AUTHBOUND.try_into()?)); in test_legacy_blobs()
219 fn try_into(self) -> Result<i64, Self::Error> { in try_into() method229 fn try_into(self) -> Result<i32, Self::Error> { in try_into() method239 fn try_into(self) -> Result<Vec<u8>, Self::Error> { in try_into() method280 <$vtype>::from_primitive(p.try_into()?)
382 Ok(Self(SystemTime::now().duration_since(SystemTime::UNIX_EPOCH)?.as_millis().try_into()?)) in now()416 fn try_into(self) -> Result<SystemTime, Self::Error> { in try_into() method426 let then_epoch = Duration::from_millis(self.0.try_into()?); in try_into()447 Ok(Self(t.duration_since(SystemTime::UNIX_EPOCH)?.as_millis().try_into()?)) in try_from()
77 additive_fields.len().try_into().expect("Cannot convert length to i32"), in set_additive_fields()88 .try_into() in get_additive_fields()
77 tokio::time::sleep(Duration::from_millis(delay_ms.try_into().unwrap_or(0))).await; in main_message_loop_thread_do_delayed()
52 BDAddr { val: raw_addr.clone().try_into().unwrap() } in from_byte_vec()
224 let max_size: usize = EVP_MAX_MD_SIZE.try_into().unwrap(); in hkdf_extract()326 let out_len = result.try_into().unwrap(); in ecdh_compute_key()