Lines Matching refs:HeaderError
63 pub type HeaderResult<T, E = HeaderError> = Result<T, E>;
70 pub struct HeaderError { struct
74 impl HeaderError { implementation
76 pub fn trap(err: impl Into<wasmtime::Error>) -> HeaderError { in trap() argument
77 HeaderError { err: err.into() } in trap()
81 pub fn downcast(self) -> wasmtime::Result<types::HeaderError> { in downcast() argument
86 pub fn downcast_ref(&self) -> Option<&types::HeaderError> { in downcast_ref() argument
91 impl From<types::HeaderError> for HeaderError { implementation
92 fn from(error: types::HeaderError) -> Self { in from()
97 impl From<ResourceTableError> for HeaderError { implementation
99 HeaderError::trap(error) in from()
103 impl From<http::header::InvalidHeaderName> for HeaderError { implementation
105 HeaderError::from(types::HeaderError::InvalidSyntax) in from()
109 impl From<http::header::InvalidHeaderValue> for HeaderError { implementation
111 HeaderError::from(types::HeaderError::InvalidSyntax) in from()
115 impl From<FieldMapError> for HeaderError { implementation
118 FieldMapError::Immutable => types::HeaderError::Immutable.into(), in from()
119 FieldMapError::InvalidHeaderName => types::HeaderError::InvalidSyntax.into(), in from()
120 FieldMapError::TooManyFields | FieldMapError::TotalSizeTooBig => HeaderError::trap(err), in from()
125 impl fmt::Debug for HeaderError { implementation
131 impl fmt::Display for HeaderError { implementation