Lines Matching refs:error

14     #[error("buffer: full")]
16 #[error("buffer: closed")]
18 #[error("buffer: short")]
20 #[error("packet too big")]
22 #[error("i/o timeout")]
24 #[error("udp: listener closed")]
26 #[error("udp: listen queue exceeded")]
28 #[error("udp: listener accept ch closed")]
30 #[error("obs cannot be nil")]
32 #[error("se of closed network connection")]
34 #[error("addr is not a net.UDPAddr")]
36 #[error("something went wrong with locAddr")]
38 #[error("already closed")]
40 #[error("no remAddr defined")]
42 #[error("address already in use")]
44 #[error("no such UDPConn")]
46 #[error("cannot remove unspecified IP by the specified IP")]
48 #[error("no address assigned")]
50 #[error("1:1 NAT requires more than one mapping")]
52 #[error("length mismtach between mappedIPs and localIPs")]
54 #[error("non-udp translation is not supported yet")]
56 #[error("no associated local address")]
58 #[error("no NAT binding found")]
60 #[error("has no permission")]
62 #[error("host name must not be empty")]
64 #[error("failed to parse IP address")]
66 #[error("no interface is available")]
68 #[error("not found")]
70 #[error("unexpected network")]
72 #[error("can't assign requested address")]
74 #[error("unknown network")]
76 #[error("no router linked")]
78 #[error("invalid port number")]
80 #[error("unexpected type-switch failure")]
82 #[error("bind failed")]
84 #[error("end port is less than the start")]
86 #[error("port space exhausted")]
88 #[error("vnet is not enabled")]
90 #[error("invalid local IP in static_ips")]
92 #[error("mapped in static_ips is beyond subnet")]
94 #[error("all static_ips must have associated local IPs")]
96 #[error("router already started")]
98 #[error("router already stopped")]
100 #[error("static IP is beyond subnet")]
102 #[error("address space exhausted")]
104 #[error("no IP address is assigned for eth0")]
106 #[error("Invalid mask")]
108 #[error("parse ipnet: {0}")]
110 #[error("parse ip: {0}")]
112 #[error("parse int: {0}")]
114 #[error("{0}")]
116 #[error("utf8: {0}")]
118 #[error("{0}")]
120 #[error("{0}")]
125 pub fn from_std<T>(error: T) -> Self in from_std()
127 T: std::error::Error + Send + Sync + 'static, in from_std()
129 Error::Std(StdError(Box::new(error))) in from_std()
132 pub fn downcast_ref<T: std::error::Error + 'static>(&self) -> Option<&T> { in downcast_ref()
142 #[error("io error: {0}")]
167 #[error("{0}")]
168 pub struct StdError(pub Box<dyn std::error::Error + Send + Sync>);