pub enum RequestError {
InvalidUrl,
UdpSocketCreateError,
UdpSocketConnectError,
RequestError,
ReadConnectionError,
SetReadTimeoutError,
SetWriteTimeoutError,
ReadResponseError,
SendResponseError(String),
}Expand description
An enumeration of possible errors that can occur during a UDP request.
This enum covers a range of potential issues, from socket creation to network timeouts.
Variants§
InvalidUrl
An error indicating that the provided URL is invalid.
UdpSocketCreateError
An error indicating that the UDP socket could not be created.
UdpSocketConnectError
An error indicating that the UDP socket could not connect to the specified address.
RequestError
A general request error, used for unspecified issues.
ReadConnectionError
An error indicating that reading from the connection failed.
SetReadTimeoutError
An error indicating that setting the read timeout for the socket failed.
SetWriteTimeoutError
An error indicating that setting the write timeout for the socket failed.
ReadResponseError
An error indicating that reading the response from the socket failed.
SendResponseError(String)
An error indicating that sending the request failed, with a descriptive message.
Trait Implementations§
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl Display for RequestError
Implements the Display trait for RequestError.
impl Display for RequestError
Implements the Display trait for RequestError.
Source§impl Error for RequestError
Implements the StdError trait for RequestError.
impl Error for RequestError
Implements the StdError trait for RequestError.