Lines Matching refs:SysError
17 use base::Error as SysError;
27 CreateSocket(SysError),
29 OpenTun(SysError),
31 CreateTap(SysError),
33 IoctlError(SysError),
51 pub fn sys_error(&self) -> SysError { in sys_error() argument
89 return Err(Error::CreateSocket(SysError::last())); in create_socket()
185 return Err(Error::IoctlError(SysError::last())); in from_raw_descriptor()
205 return Err(Error::OpenTun(SysError::last())); in create_tap_with_ifreq()
215 let error = SysError::last(); in create_tap_with_ifreq()
333 return Err(Error::IoctlError(SysError::last())); in ip_addr()
353 return Err(Error::IoctlError(SysError::last())); in set_ip_addr()
372 return Err(Error::IoctlError(SysError::last())); in netmask()
392 return Err(Error::IoctlError(SysError::last())); in set_netmask()
411 return Err(Error::IoctlError(SysError::last())); in mac_address()
436 return Err(Error::IoctlError(SysError::last())); in set_mac_address()
447 return Err(Error::IoctlError(SysError::last())); in set_offload()
464 return Err(Error::IoctlError(SysError::last())); in enable()
474 return Err(Error::IoctlError(SysError::last())); in set_vnet_hdr_size()