Lines Matching refs:err

16     err: wasmtime::Error,  field
21 pub fn trap(err: impl Into<wasmtime::Error>) -> HttpError { in trap()
22 HttpError { err: err.into() } in trap()
27 self.err.downcast() in downcast()
32 self.err.downcast_ref() in downcast_ref()
38 Self { err: error.into() } in from()
50 self.err.fmt(f) in fmt()
56 self.err.fmt(f) in fmt()
71 err: wasmtime::Error, field
76 pub fn trap(err: impl Into<wasmtime::Error>) -> HeaderError { in trap()
77 HeaderError { err: err.into() } in trap()
82 self.err.downcast() in downcast()
87 self.err.downcast_ref() in downcast_ref()
93 Self { err: error.into() } in from()
116 fn from(err: FieldMapError) -> Self { in from()
117 match err { in from()
120 FieldMapError::TooManyFields | FieldMapError::TotalSizeTooBig => HeaderError::trap(err), in from()
127 self.err.fmt(f) in fmt()
133 self.err.fmt(f) in fmt()
150 pub fn http_request_error(err: http::Error) -> ErrorCode { in http_request_error()
151 if err.is::<http::uri::InvalidUri>() { in http_request_error()
161 pub fn hyper_request_error(err: hyper::Error) -> ErrorCode { in hyper_request_error()
163 if let Some(cause) = err.source() { in hyper_request_error()
164 if let Some(err) = cause.downcast_ref::<ErrorCode>() { in hyper_request_error()
165 return err.clone(); in hyper_request_error()
175 pub fn hyper_response_error(err: hyper::Error) -> ErrorCode { in hyper_response_error()
176 if err.is_timeout() { in hyper_response_error()
181 if let Some(cause) = err.source() { in hyper_response_error()
182 if let Some(err) = cause.downcast_ref::<ErrorCode>() { in hyper_response_error()
183 return err.clone(); in hyper_response_error()
193 fn from(err: hyper::Error) -> Self { in from()
194 hyper_response_error(err) in from()