pub enum ProtoError {
HeaderName,
HeaderValue,
HeaderTooLarge,
Method,
Uri,
NewLine,
Status,
Token,
Version,
}Variants§
Trait Implementations§
Source§impl Debug for ProtoError
impl Debug for ProtoError
Source§impl From<Error> for ProtoError
impl From<Error> for ProtoError
Source§fn from(e: HttparseError) -> Self
fn from(e: HttparseError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidMethod> for ProtoError
impl From<InvalidMethod> for ProtoError
Source§fn from(_: InvalidMethod) -> Self
fn from(_: InvalidMethod) -> Self
Converts to this type from the input type.
Source§impl From<InvalidStatusCode> for ProtoError
impl From<InvalidStatusCode> for ProtoError
Source§fn from(_: InvalidStatusCode) -> Self
fn from(_: InvalidStatusCode) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for ProtoError
impl From<InvalidUri> for ProtoError
Source§fn from(_: InvalidUri) -> Self
fn from(_: InvalidUri) -> Self
Converts to this type from the input type.
Source§impl<S, B> From<ProtoError> for Error<S, B>
impl<S, B> From<ProtoError> for Error<S, B>
Source§fn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtoError
impl RefUnwindSafe for ProtoError
impl Send for ProtoError
impl Sync for ProtoError
impl Unpin for ProtoError
impl UnwindSafe for ProtoError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more