/trusty/user/base/lib/storage/rust/src/ |
D | transaction.rs | 22 pub fn commit(self) -> Result<(), Error> { in commit() 29 pub fn discard(self) -> Result<(), Error> { in discard() 33 fn end_transaction(self, complete: bool) -> Result<(), Error> { in end_transaction() 118 pub fn write_all(&mut self, file: &mut SecureFile, buf: &[u8]) -> Result<(), Error> { in write_all() 132 ) -> Result<(), Error> { in write_at() 147 pub fn set_size(&mut self, file: &mut SecureFile, size: usize) -> Result<(), Error> { in set_size() 162 pub fn rename(&mut self, from: &str, to: &str) -> Result<(), Error> { in rename() 175 pub fn remove(&mut self, name: &str) -> Result<(), Error> { in remove()
|
D | lib.rs | 322 pub fn write(&mut self, path: &str, buf: &[u8]) -> Result<(), Error> { in write() 402 pub fn write_all(&mut self, file: &mut SecureFile, buf: &[u8]) -> Result<(), Error> { in write_all() 414 ) -> Result<(), Error> { in write_all_impl() 440 ) -> Result<(), Error> { in write_at() 453 ) -> Result<(), Error> { in write_at_impl() 503 pub fn set_size(&mut self, file: &mut SecureFile, size: usize) -> Result<(), Error> { in set_size() 515 ) -> Result<(), Error> { in set_size_impl() 541 pub fn rename(&mut self, from: &str, to: &str) -> Result<(), Error> { in rename() 548 fn rename_impl(&mut self, from: &str, to: &str, complete: bool) -> Result<(), Error> { in rename_impl() 583 pub fn remove(&mut self, name: &str) -> Result<(), Error> { in remove() [all …]
|
/trusty/user/app/storage/test/storage-unittest-aidl/unittests/ |
D | helpers.rs | 17 ) -> Result<(), String> { in ensure_deleted() 58 fn check_pattern32(offset: usize, buf: &[u8]) -> Result<(), String> { in check_pattern32() 96 fn check_valid_size(chunk_len: usize) -> Result<(), String> { in check_valid_size() 108 ) -> Result<(), String> { in write_pattern() 134 ) -> Result<(), String> { in read_pattern()
|
/trusty/user/base/lib/tipc/rust/src/service/ |
D | handle_set.rs | 84 pub fn add_connection(&mut self, connection: Rc<Channel<D>>) -> Result<()> { in add_connection() 156 fn do_set_ctrl(&self, cmd: u32, event: u32, channel: &Rc<Channel<D>>) -> Result<()> { in do_set_ctrl() 207 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
|
/trusty/user/app/secretkeeper/ |
D | store.rs | 67 fn store(&mut self, key: &[u8], val: &[u8]) -> Result<(), Error> { in store() 99 fn delete(&mut self, key: &[u8]) -> Result<(), Error> { in delete() 109 fn delete_all(&mut self) -> Result<(), Error> { in delete_all()
|
D | lib.rs | 87 fn fragmented_send(handle: &Handle, full_rsp: Vec<u8>) -> tipc::Result<()> { in fragmented_send() 231 ) -> Result<(), TipcError> in add_service_port()
|
/trusty/user/app/sample/hwcryptohal/server/ |
D | opaque_key.rs | 47 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 196 ) -> Result<(), HwCryptoError> { in check_key_derivation_parameters() 275 fn key_can_be_used_for_derivation(&self) -> Result<(), HwCryptoError> { in key_can_be_used_for_derivation() 315 ) -> Result<(), HwCryptoError> { in check_key_material_with_policy() 458 fn validate_lifetime(lifetime: KeyLifetime) -> Result<(), HwCryptoError> { in validate_lifetime() 466 fn check_type_derived_key(key_type: KeyType) -> Result<(), HwCryptoError> { in check_type_derived_key()
|
D | hwcrypto_device_key.rs | 98 fn check_version(&self) -> Result<(), HwCryptoError> { in check_version() 106 fn check_context(&self, connection: ConnectionInformation) -> Result<(), HwCryptoError> { in check_context() 116 ) -> Result<(), HwCryptoError> { in check_encrypted_context()
|
/trusty/user/app/keymint/ |
D | secure_deletion_secret_manager.rs | 203 fn write_block(&mut self, start: usize, buffer: &[u8]) -> Result<(), Error> { in write_block() 231 fn resize(&mut self, new_size: usize) -> Result<(), Error> { in resize() 243 fn zero_entries(&mut self, begin: usize, end: usize) -> Result<(), Error> { in zero_entries() 258 fn finish_transaction(self) -> Result<(), Error> { in finish_transaction() 376 fn read_slot_data(&self, slot: SecureDeletionSlot, buffer: &mut [u8]) -> Result<(), Error> { in read_slot_data() 585 fn delete_secret(&mut self, slot: SecureDeletionSlot) -> Result<(), Error> { in delete_secret() 1010 fn delete_secret(&mut self, slot: SecureDeletionSlot) -> Result<(), Error> { in delete_secret()
|
D | secure_storage_manager.rs | 81 fn write_all(&mut self, data: &[u8]) -> Result<(), Error> { in write_all() 129 ) -> Result<(), Error> { in write_protobuf_to_attestation_key_file() 144 ) -> Result<(), Error> { in set_wrapped_attestation_key() 154 ) -> Result<(), Error> { in provision_attestation_key_file() 167 ) -> Result<(), Error> { in append_attestation_cert_chain() 200 pub(crate) fn clear_attestation_cert_chain(algorithm: SigningAlgorithm) -> Result<(), Error> { in clear_attestation_cert_chain() 234 ) -> Result<(), Error> { in provision_attestation_id_file() 441 fn destroy_all(&mut self) -> Result<(), Error> { in destroy_all()
|
D | keymaster_attributes.rs | 236 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() 821 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() 1039 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() 1211 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt()
|
D | ipc_manager.rs | 566 ) -> Result<(), Error> { in handle_port_connections() 678 fn check_response_status(rsp: &KMMessage) -> Result<(), ErrorCode> { in check_response_status() 692 fn get_response_status(session: &Handle) -> Result<(), ErrorCode> { in get_response_status()
|
/trusty/user/base/lib/hwwsk/rust/src/ |
D | err.rs | 50 pub(crate) fn from_status(rc: u32) -> Result<(), Self> { in from_status()
|
D | lib.rs | 239 fn validate_cmd(sent_cmd: &u32, recvd_cmd: &u32) -> Result<(), HwWskError> { in validate_cmd()
|
/trusty/user/base/lib/unittest-rust/src/ |
D | types.rs | 105 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 138 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
|
D | lib.rs | 134 fn connect(&self, handle: &Handle) -> tipc::Result<()> { in connect()
|
/trusty/user/base/lib/hwkey/rust/src/ |
D | err.rs | 40 pub(crate) fn from_hwkey_rc(rc: u32) -> Result<(), Self> { in from_hwkey_rc()
|
/trusty/user/base/lib/tipc/rust/src/ |
D | err.rs | 28 pub type Result<T> = core::result::Result<T, TipcError>; typedef
|
D | service.rs | 145 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 162 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 285 ) -> Result<()> { in new_from_string() 344 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 1046 pub fn run_event_loop(mut self) -> Result<()> { in run_event_loop() 1093 fn event_loop_inner(&mut self) -> Result<()> { in event_loop_inner() 1110 fn handler(&mut self, channel: Rc<Channel<D>>, event: &trusty_sys::uevent) -> Result<()> { in handler() 1157 fn handle_connect(&mut self, handle: &Handle, cfg: &PortCfg) -> Result<()> { in handle_connect()
|
D | handle.rs | 121 pub fn send<'s, T: Serialize<'s>>(&self, msg: &'s T) -> crate::Result<()> { in send() 209 pub fn send_vectored(&self, buffers: &[&[u8]], handles: &[Handle]) -> crate::Result<()> { in send_vectored()
|
/trusty/user/base/lib/trusty-std/src/ |
D | alloc.rs | 96 fn try_push(&mut self, value: T) -> Result<(), TryReserveError>; in try_push() 103 fn try_push(&mut self, value: T) -> Result<(), TryReserveError> { in try_push()
|
/trusty/user/app/keymint/keys/ |
D | legacy.rs | 316 fn delete_legacy_key(&mut self, keyblob: &[u8]) -> Result<(), Error> { in delete_legacy_key()
|
/trusty/user/base/lib/hwbcc/rust/src/ |
D | lib.rs | 65 fn validate_response(self, resp: u32) -> Result<(), HwBccError> { in validate_response()
|