pub enum ConnectError {
Show 14 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),
Io(Arc<Error>),
}Expand description
Errors returned while encoding or decoding WebTransport CONNECT messages.
Variants§
UnexpectedEnd
Input ended before the complete frame/header block was available.
QpackError(DecodeError)
QPACK header block decoding failed.
UnexpectedFrame(Frame)
Received an unexpected HTTP/3 frame type.
InvalidMethod
:method could not be parsed as an HTTP method.
InvalidUrl(ParseError)
URL reconstruction from pseudo-headers failed.
InvalidStatus
:status could not be parsed as a valid HTTP status code.
WrongStatus(Option<StatusCode>)
Response status was not successful.
WrongMethod(Option<Method>)
Request method was not CONNECT.
WrongScheme(Option<String>)
Request scheme was not HTTPS.
WrongAuthority
Required :authority pseudo-header was missing.
WrongProtocol(Option<String>)
CONNECT protocol was not webtransport.
WrongPath
Required :path pseudo-header was missing.
ErrorStatus(StatusCode)
Peer returned an explicit non-2xx HTTP response status.
Io(Arc<Error>)
I/O error while reading or writing frames.
Trait Implementations§
Source§impl Clone for ConnectError
impl Clone for ConnectError
Source§fn clone(&self) -> ConnectError
fn clone(&self) -> ConnectError
Returns a duplicate 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<Error> for ConnectError
impl From<Error> for ConnectError
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 UnsafeUnpin 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