Lines Matching refs:TipcError
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()
333 let clock_seq = uuid_elements.next().ok_or(TipcError::InvalidData)?; in new_from_string()
336 let node = uuid_elements.next().ok_or(TipcError::InvalidData)?; in new_from_string()
476 TipcError::InvalidData in on_message()
677 TipcError::InvalidData in on_message()
808 return Err($crate::TipcError::OutOfBounds);
846 .ok_or($crate::TipcError::InvalidPort)?;
867 Err($crate::TipcError::InvalidData)
1027 return Err(TipcError::NotEnoughBuffer); in new_with_dispatcher()
1061 | TipcError::SystemError(Error::TimedOut) in run_event_loop()
1062 | TipcError::SystemError(Error::ChannelClosed) in run_event_loop()
1066 | TipcError::ChannelClosed in run_event_loop()
1075 | TipcError::IncompleteWrite { .. } in run_event_loop()
1076 | TipcError::NotEnoughBuffer in run_event_loop()
1077 | TipcError::Busy in run_event_loop()
1105 TipcError::InvalidData in event_loop_inner()
1152 Err(TipcError::UnknownError) in handler()
1194 TipcError, UnbufferedService, Uuid,
1246 Some(TipcError::SystemError(Error::InvalidArgs)), in port_create_negative()
1255 Some(TipcError::SystemError(Error::InvalidArgs)), in port_create_negative()
1262 Some(TipcError::SystemError(Error::InvalidArgs)), in port_create_negative()
1269 Some(TipcError::SystemError(Error::InvalidArgs)), in port_create_negative()
1276 Some(TipcError::SystemError(Error::InvalidArgs)), in port_create_negative()
1287 Some(TipcError::SystemError(Error::InvalidArgs)), in port_create_negative()
1305 Some(TipcError::SystemError(Error::AlreadyExists)), in port_create()
1322 Some(TipcError::SystemError(Error::NoResources)), in port_create()
1330 Some(TipcError::SystemError(Error::NoResources)), in port_create()
1350 Some(TipcError::SystemError(Error::TimedOut)), in wait_on_port()
1356 Some(TipcError::SystemError(Error::TimedOut)), in wait_on_port()
1372 type Error = TipcError;
1380 Ok(i32::from_ne_bytes(bytes[0..4].try_into().map_err(|_| TipcError::OutOfBounds)?)) in deserialize()