#[non_exhaustive]pub enum RequestError {
Rejected(ErrorResponse),
Failed(Error),
}Expand description
Why a TURN request did not do what it asked.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rejected(ErrorResponse)
The server answered with this error response.
Failed(Error)
There is no usable answer: the response was malformed, the request timed out or could not be made, or the state it was about is gone.
Implementations§
Trait Implementations§
Source§impl Debug for RequestError
impl Debug for RequestError
Source§impl Display for RequestError
impl Display for RequestError
Source§impl Error for RequestError
impl Error for RequestError
1.30.0 · 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 RequestError
impl From<Error> for RequestError
Source§impl From<RequestError> for Error
impl From<RequestError> for Error
Source§fn from(err: RequestError) -> Self
fn from(err: RequestError) -> Self
The error itself when there is one, the server’s code and reason as text otherwise.
Source§impl PartialEq for RequestError
impl PartialEq for RequestError
impl StructuralPartialEq for RequestError
Auto Trait Implementations§
impl !RefUnwindSafe for RequestError
impl !UnwindSafe for RequestError
impl Forget for RequestError
impl Freeze for RequestError
impl Move for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnsafeUnpin for RequestError
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