/trusty/user/base/lib/tipc/rust/src/ |
D | err.rs | 28 pub type Result<T> = core::result::Result<T, TipcError>; 32 pub enum TipcError { enum 86 impl TipcError { implementation 90 Error::BadHandle => TipcError::InvalidHandle, in from_uapi() 91 e => TipcError::SystemError(e), in from_uapi() 106 impl From<TryNewError> for TipcError { implementation 115 impl From<TryReserveError> for TipcError { implementation 117 TipcError::AllocError in from() 121 impl From<TryFromIntError> for TipcError { implementation 123 TipcError::OutOfBounds in from() [all …]
|
D | handle.rs | 19 use crate::{Deserialize, Serialize, TipcError}; 90 Err(TipcError::from_uapi(rc)) in connect() 92 rc.try_into().map(Handle).or(Err(TipcError::InvalidHandle)) in connect() 101 Self::from_raw(rc.try_into().or(Err(TipcError::InvalidHandle))?) in try_clone() 110 Err(TipcError::from_uapi(fd as c_long)) in from_raw() 159 return Err(TipcError::NotEnoughBuffer); in recv_vectored() 187 Err(TipcError::from_uapi(rc)) in recv_vectored() 245 return Err(TipcError::Busy); in send_vectored() 247 return Err(TipcError::ChannelClosed); in send_vectored() 262 Err(TipcError::from_uapi(rc)) in send_vectored() [all …]
|
D | service.rs | 29 use crate::{ConnectResult, Deserialize, Handle, MessageResult, Result, TipcError}; 217 Err(TipcError::from_uapi(rc)) in try_new_port() 261 let bytes: &[u8; Self::UUID_BYTE_LEN] = bytes.try_into().or(Err(TipcError::OutOfBounds))?; in try_from_bytes() 277 let uuid_element = uuid_element.ok_or(TipcError::InvalidData)?; in new_from_string() 278 conversion_fn(uuid_element, 16).map_err(|_| TipcError::InvalidData) in new_from_string() 289 return Err(TipcError::InvalidData); in new_from_string() 303 return Err(TipcError::InvalidData); in new_from_string() 307 return Err(TipcError::InvalidData); in new_from_string() 313 return Err(TipcError::InvalidData); in new_from_string() 322 return Err(TipcError::InvalidData); in new_from_string() [all …]
|
D | serialization.rs | 1 use crate::{Handle, TipcError}; 69 type Error: From<TipcError> + Debug; 100 type Error = TipcError;
|
D | lib.rs | 41 pub use err::{ConnectResult, MessageResult, Result, TipcError};
|
/trusty/user/base/lib/system_state/rust/src/ |
D | lib.rs | 32 use tipc::{Deserialize, Handle, Serialize, Serializer, TipcError}; 55 type Error = TipcError; 68 _ => Err(TipcError::InvalidData), in try_from() 90 type Error = TipcError; 103 _ => Err(TipcError::InvalidData), in try_from() 113 pub fn try_connect() -> Result<Self, TipcError> { in try_connect() 120 pub fn get_flag(&self, flag: SystemStateFlag) -> Result<u64, TipcError> { in get_flag() argument 177 type Error = TipcError; 184 return Err(TipcError::NotEnoughBuffer); in deserialize() 197 return Err(TipcError::NotEnoughBuffer); in deserialize() [all …]
|
/trusty/user/base/lib/hwbcc/rust/src/ |
D | err.rs | 18 use tipc::TipcError; 30 Tipc(TipcError), 34 impl From<TipcError> for HwBccError { 35 fn from(err: TipcError) -> Self { in from()
|
/trusty/user/app/keymint/ |
D | ffi_bindings.rs | 31 use tipc::{Deserialize, Handle, Serialize, Serializer, TipcError}; 111 type Error = TipcError; 116 TipcError::UnknownError in deserialize() 120 return Err(TipcError::UnknownError); in deserialize() 125 TipcError::UnknownError in deserialize() 129 return Err(TipcError::UnknownError); in deserialize() 134 TipcError::UnknownError in deserialize() 142 return Err(TipcError::UnknownError); in deserialize() 147 TipcError::AllocError in deserialize()
|
D | keybox.rs | 20 use tipc::{Handle, TipcError}; 37 fn new() -> Result<Self, TipcError> { in new()
|
D | ipc_manager.rs | 41 Serialize, Serializer, Service, TipcError, Uuid, 73 type Error = TipcError; 148 TipcError::InvalidData in on_message() 152 TipcError::AllocError in on_message() 154 _ => TipcError::UnknownError, in on_message() 414 TipcError::InvalidData in on_message() 421 TipcError::InvalidData in on_message() 427 TipcError::InvalidData in on_message() 432 return Err(TipcError::UnknownError); in on_message() 517 TipcError::InvalidData in on_message() [all …]
|
/trusty/user/app/sample/rust-hello-world/ |
D | lib.rs | 21 Service, TipcError, Uuid, 62 type Error = TipcError; 65 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, TipcError> { in deserialize() argument 68 return Err(TipcError::InvalidData); in deserialize() 71 return Err(TipcError::InvalidData); in deserialize() 137 TipcError::InvalidData in on_message() 149 TipcError::InvalidData in on_message() 161 pub fn init_and_start_loop() -> Result<(), TipcError> { in init_and_start_loop() 172 TipcError::UnknownError in init_and_start_loop() 189 TipcError::UnknownError in init_and_start_loop()
|
/trusty/user/base/lib/hwwsk/rust/src/ |
D | err.rs | 20 use tipc::TipcError; 44 Tipc(TipcError), 62 impl From<TipcError> for HwWskError { 63 fn from(err: TipcError) -> Self { in from()
|
D | test.rs | 23 use tipc::{Handle, TipcError}; 27 fn open_hwwsk_session() -> Result<Handle, TipcError> { in open_hwwsk_session()
|
/trusty/user/base/lib/hwkey/rust/src/ |
D | err.rs | 21 use tipc::TipcError; 36 Tipc(TipcError), 55 impl From<TipcError> for HwkeyError { 56 fn from(e: TipcError) -> Self { in from()
|
D | lib.rs | 38 use tipc::{Deserialize, Handle, Serialize, Serializer, TipcError}; 57 pub fn open() -> Result<Self, TipcError> { in open()
|
/trusty/user/app/keymint/unauthorized_test_app/ |
D | lib.rs | 19 use tipc::{Handle, TipcError}; 38 assert_eq!(err1, TipcError::SystemError(trusty_sys::Error::ChannelClosed)); in test_access_policy_unauthorized()
|
/trusty/user/base/lib/tipc/rust/src/service/ |
D | handle_set.rs | 25 use crate::{Handle, Result, TipcError}; 52 Err(TipcError::from_uapi(rc)) 56 return Err(TipcError::InvalidData); 86 return Err(TipcError::InvalidData); in add_connection() 193 Err(TipcError::from_uapi(rc)) in do_set_ctrl()
|
/trusty/user/app/sample/hwcryptohal/common/ |
D | err.rs | 24 use tipc::TipcError; 57 impl From<TipcError> for HwCryptoError { 58 fn from(e: TipcError) -> Self { in from()
|
/trusty/user/app/sample/memref-test/rust/ |
D | memref_test.rs | 5 use tipc::{Deserialize, Handle, MMapFlags, Serialize, Serializer, TipcError, UnsafeSharedBuf}; 159 type Error = TipcError; 175 type Error = TipcError; 206 type Error = TipcError;
|
/trusty/user/app/secretkeeper/ |
D | lib.rs | 29 Serialize, Serializer, TipcError, Uuid, 69 type Error = TipcError; 231 ) -> Result<(), TipcError> in add_service_port() 238 TipcError::UnknownError in add_service_port() 253 pub fn inner_main() -> Result<(), TipcError> { in inner_main()
|