pub enum ServerError {
RequestAlreadyCompleted,
UnexpectedEnd,
Connection(ConnectionError),
HandshakeTimeout,
WriteError(WriteError),
ReadError(ReadError),
SettingsError(SettingsError),
ConnectError(ConnectError),
IoError(Arc<Error>),
InvalidCryptoConfiguration,
Rustls(Error),
}Expand description
Error returned when receiving a new WebTransport session.
Variants§
RequestAlreadyCompleted
A request no longer owns the handshake state needed to complete it.
UnexpectedEnd
Incoming bytes ended before the handshake exchange completed.
Connection(ConnectionError)
QUIC connection-level failure.
HandshakeTimeout
QUIC and HTTP/3 session establishment exceeded the configured timeout.
WriteError(WriteError)
Failed to write handshake data.
ReadError(ReadError)
Failed to read handshake data.
SettingsError(SettingsError)
HTTP/3 SETTINGS negotiation failed.
ConnectError(ConnectError)
HTTP/3 CONNECT negotiation failed.
IoError(Arc<Error>)
Generic I/O failure during server setup or handshake.
InvalidCryptoConfiguration
TLS configuration did not provide a QUIC-compatible initial cipher suite.
Rustls(Error)
Rustls-level TLS configuration or handshake error.
Trait Implementations§
Source§impl Clone for ServerError
impl Clone for ServerError
Source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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<ConnectError> for ServerError
impl From<ConnectError> for ServerError
Source§fn from(source: ConnectError) -> Self
fn from(source: ConnectError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for ServerError
impl From<ConnectionError> for ServerError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<ReadError> for ServerError
impl From<ReadError> for ServerError
Source§impl From<SettingsError> for ServerError
impl From<SettingsError> for ServerError
Source§fn from(source: SettingsError) -> Self
fn from(source: SettingsError) -> Self
Converts to this type from the input type.
Source§impl From<WriteError> for ServerError
impl From<WriteError> for ServerError
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ServerError
impl !RefUnwindSafe for ServerError
impl !UnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
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