pub enum ConnectError {
Show 13 variants
UnexpectedEnd,
QpackError(DecodeError),
UnexpectedFrame(Frame),
InvalidMethod,
InvalidUrl(ParseError),
InvalidStatus,
WrongStatus(Option<StatusCode>),
WrongMethod(Option<Method>),
WrongScheme(Option<String>),
WrongAuthority,
WrongProtocol(Option<String>),
WrongPath,
ErrorStatus(StatusCode),
}
Variants§
UnexpectedEnd
QpackError(DecodeError)
UnexpectedFrame(Frame)
InvalidMethod
InvalidUrl(ParseError)
InvalidStatus
WrongStatus(Option<StatusCode>)
WrongMethod(Option<Method>)
WrongScheme(Option<String>)
WrongAuthority
WrongProtocol(Option<String>)
WrongPath
ErrorStatus(StatusCode)
Trait Implementations§
source§impl Clone for ConnectError
impl Clone for ConnectError
source§fn clone(&self) -> ConnectError
fn clone(&self) -> ConnectError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectError
impl Debug for ConnectError
source§impl Display for ConnectError
impl Display for ConnectError
source§impl Error for ConnectError
impl Error for ConnectError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for ConnectError
impl From<ParseError> for ConnectError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectError
impl RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl UnwindSafe for ConnectError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)