pub(crate) enum Parse {
Method,
Version,
VersionH2,
Uri,
UriTooLong,
Header(Header),
TooLarge,
Status,
Internal,
}
Variants§
Implementations§
source§impl Parse
impl Parse
pub(crate) fn content_length_invalid() -> Self
pub(crate) fn transfer_encoding_invalid() -> Self
pub(crate) fn transfer_encoding_unexpected() -> Self
Trait Implementations§
source§impl From<InvalidMethod> for Parse
impl From<InvalidMethod> for Parse
source§fn from(_: InvalidMethod) -> Parse
fn from(_: InvalidMethod) -> Parse
Converts to this type from the input type.
source§impl From<InvalidStatusCode> for Parse
impl From<InvalidStatusCode> for Parse
source§fn from(_: InvalidStatusCode) -> Parse
fn from(_: InvalidStatusCode) -> Parse
Converts to this type from the input type.
source§impl From<InvalidUri> for Parse
impl From<InvalidUri> for Parse
source§fn from(_: InvalidUri) -> Parse
fn from(_: InvalidUri) -> Parse
Converts to this type from the input type.
source§impl From<InvalidUriParts> for Parse
impl From<InvalidUriParts> for Parse
source§fn from(_: InvalidUriParts) -> Parse
fn from(_: InvalidUriParts) -> Parse
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Parse
impl RefUnwindSafe for Parse
impl Send for Parse
impl Sync for Parse
impl Unpin for Parse
impl UnwindSafe for Parse
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