Lines Matching refs:new
35 let addr = match CString::new(address) { in connect_with_ip_version()
37 Err(_) => return Err(io::Error::new(ErrorKind::Other, "Invalid address")), in connect_with_ip_version()
54 Err(io::Error::new(ErrorKind::Interrupted, "TEE_ERROR_CANCEL")) in connect_with_ip_version()
57 Err(io::Error::new(ErrorKind::Other, "TEE_ERROR_OUT_OF_MEMORY")) in connect_with_ip_version()
60 Err(io::Error::new(ErrorKind::Other, "TEE_ERROR_BAD_PARAMETERS")) in connect_with_ip_version()
62 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in connect_with_ip_version()
66 raw::TEE_ERROR_COMMUNICATION => Err(io::Error::new( in connect_with_ip_version()
70 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in connect_with_ip_version()
74 raw::TEE_ISOCKET_WARNING_PROTOCOL => Err(io::Error::new( in connect_with_ip_version()
120 Err(io::Error::new(ErrorKind::Interrupted, "TEE_ERROR_CANCEL")) in read()
122 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in read()
126 raw::TEE_ERROR_COMMUNICATION => Err(io::Error::new( in read()
130 raw::TEE_ISOCKET_ERROR_REMOTE_CLOSED => Err(io::Error::new( in read()
134 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in read()
138 raw::TEE_ISOCKET_WARNING_PROTOCOL => Err(io::Error::new( in read()
162 Err(io::Error::new(ErrorKind::Interrupted, "TEE_ERROR_CANCEL")) in write()
164 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in write()
168 raw::TEE_ISOCKET_ERROR_REMOTE_CLOSED => Err(io::Error::new( in write()
172 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in write()
176 raw::TEE_ISOCKET_WARNING_PROTOCOL => Err(io::Error::new( in write()
180 raw::TEE_ISOCKET_ERROR_LARGE_BUFFER => Err(io::Error::new( in write()
205 let addr = match CString::new(address) { in connect_with_ip_version()
207 Err(_) => return Err(io::Error::new(ErrorKind::Other, "Invalid address")), in connect_with_ip_version()
224 Err(io::Error::new(ErrorKind::Interrupted, "TEE_ERROR_CANCEL")) in connect_with_ip_version()
227 Err(io::Error::new(ErrorKind::Other, "TEE_ERROR_OUT_OF_MEMORY")) in connect_with_ip_version()
230 Err(io::Error::new(ErrorKind::Other, "TEE_ERROR_BAD_PARAMETERS")) in connect_with_ip_version()
232 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in connect_with_ip_version()
236 raw::TEE_ERROR_COMMUNICATION => Err(io::Error::new( in connect_with_ip_version()
240 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in connect_with_ip_version()
244 raw::TEE_ISOCKET_WARNING_PROTOCOL => Err(io::Error::new( in connect_with_ip_version()
290 Err(io::Error::new(ErrorKind::Interrupted, "TEE_ERROR_CANCEL")) in read()
292 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in read()
296 raw::TEE_ERROR_COMMUNICATION => Err(io::Error::new( in read()
300 raw::TEE_ISOCKET_ERROR_REMOTE_CLOSED => Err(io::Error::new( in read()
304 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in read()
308 raw::TEE_ISOCKET_WARNING_PROTOCOL => Err(io::Error::new( in read()
332 Err(io::Error::new(ErrorKind::Interrupted, "TEE_ERROR_CANCEL")) in write()
334 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in write()
338 raw::TEE_ISOCKET_ERROR_REMOTE_CLOSED => Err(io::Error::new( in write()
342 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in write()
346 raw::TEE_ISOCKET_WARNING_PROTOCOL => Err(io::Error::new( in write()
350 raw::TEE_ISOCKET_ERROR_LARGE_BUFFER => Err(io::Error::new( in write()