Home
last modified time | relevance | path

Searched refs:TipcError (Results 1 – 20 of 20) sorted by relevance

/trusty/user/base/lib/tipc/rust/src/
Derr.rs28 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 …]
Dhandle.rs19 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 …]
Dservice.rs29 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 …]
Dserialization.rs1 use crate::{Handle, TipcError};
69 type Error: From<TipcError> + Debug;
100 type Error = TipcError;
Dlib.rs41 pub use err::{ConnectResult, MessageResult, Result, TipcError};
/trusty/user/base/lib/system_state/rust/src/
Dlib.rs32 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/
Derr.rs18 use tipc::TipcError;
30 Tipc(TipcError),
34 impl From<TipcError> for HwBccError {
35 fn from(err: TipcError) -> Self { in from()
/trusty/user/app/keymint/
Dffi_bindings.rs31 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()
Dkeybox.rs20 use tipc::{Handle, TipcError};
37 fn new() -> Result<Self, TipcError> { in new()
Dipc_manager.rs41 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/
Dlib.rs21 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/
Derr.rs20 use tipc::TipcError;
44 Tipc(TipcError),
62 impl From<TipcError> for HwWskError {
63 fn from(err: TipcError) -> Self { in from()
Dtest.rs23 use tipc::{Handle, TipcError};
27 fn open_hwwsk_session() -> Result<Handle, TipcError> { in open_hwwsk_session()
/trusty/user/base/lib/hwkey/rust/src/
Derr.rs21 use tipc::TipcError;
36 Tipc(TipcError),
55 impl From<TipcError> for HwkeyError {
56 fn from(e: TipcError) -> Self { in from()
Dlib.rs38 use tipc::{Deserialize, Handle, Serialize, Serializer, TipcError};
57 pub fn open() -> Result<Self, TipcError> { in open()
/trusty/user/app/keymint/unauthorized_test_app/
Dlib.rs19 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/
Dhandle_set.rs25 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/
Derr.rs24 use tipc::TipcError;
57 impl From<TipcError> for HwCryptoError {
58 fn from(e: TipcError) -> Self { in from()
/trusty/user/app/sample/memref-test/rust/
Dmemref_test.rs5 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/
Dlib.rs29 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()