#[non_exhaustive]pub enum LavalinkError {
Show 17 variants
IoError(Error),
WebsocketError(Error),
InvalidHeaderValue(InvalidHeaderValue),
HyperError(Error),
HyperClientError(Error),
HttpError(Error),
InvalidUri(InvalidUri),
InvalidMethod(InvalidMethod),
ChannelSendError,
ChannelReceiveError(RecvError),
SerdeErrorQs(Error),
SerdeErrorJson(Error),
ResponseError(ResponseError),
NoSessionPresent,
TrackError(TrackError),
InvalidDataType,
Timeout,
}
Expand description
Every error the library can return.
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.
IoError(Error)
WebsocketError(Error)
InvalidHeaderValue(InvalidHeaderValue)
HyperError(Error)
HyperClientError(Error)
HttpError(Error)
InvalidUri(InvalidUri)
InvalidMethod(InvalidMethod)
ChannelSendError
ChannelReceiveError(RecvError)
SerdeErrorQs(Error)
SerdeErrorJson(Error)
ResponseError(ResponseError)
NoSessionPresent
TrackError(TrackError)
InvalidDataType
Timeout
Trait Implementations§
Source§impl Debug for LavalinkError
impl Debug for LavalinkError
Source§impl Display for LavalinkError
impl Display for LavalinkError
Source§impl Error for LavalinkError
impl Error for LavalinkError
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 LavalinkError
impl From<Error> for LavalinkError
Source§fn from(err: IoError) -> LavalinkError
fn from(err: IoError) -> LavalinkError
Converts to this type from the input type.
Source§impl From<Error> for LavalinkError
impl From<Error> for LavalinkError
Source§fn from(err: TungsteniteError) -> LavalinkError
fn from(err: TungsteniteError) -> LavalinkError
Converts to this type from the input type.
Source§impl From<Error> for LavalinkError
impl From<Error> for LavalinkError
Source§fn from(err: HttpError) -> LavalinkError
fn from(err: HttpError) -> LavalinkError
Converts to this type from the input type.
Source§impl From<Error> for LavalinkError
impl From<Error> for LavalinkError
Source§fn from(err: HyperError) -> LavalinkError
fn from(err: HyperError) -> LavalinkError
Converts to this type from the input type.
Source§impl From<Error> for LavalinkError
impl From<Error> for LavalinkError
Source§fn from(err: HyperClientError) -> LavalinkError
fn from(err: HyperClientError) -> LavalinkError
Converts to this type from the input type.
Source§impl From<Error> for LavalinkError
impl From<Error> for LavalinkError
Source§impl From<Error> for LavalinkError
impl From<Error> for LavalinkError
Source§impl From<InvalidHeaderValue> for LavalinkError
impl From<InvalidHeaderValue> for LavalinkError
Source§fn from(err: InvalidHeaderValue) -> LavalinkError
fn from(err: InvalidHeaderValue) -> LavalinkError
Converts to this type from the input type.
Source§impl From<InvalidMethod> for LavalinkError
impl From<InvalidMethod> for LavalinkError
Source§fn from(err: InvalidMethod) -> LavalinkError
fn from(err: InvalidMethod) -> LavalinkError
Converts to this type from the input type.
Source§impl From<InvalidUri> for LavalinkError
impl From<InvalidUri> for LavalinkError
Source§fn from(err: InvalidUri) -> LavalinkError
fn from(err: InvalidUri) -> LavalinkError
Converts to this type from the input type.
Source§impl From<LavalinkError> for PyErr
impl From<LavalinkError> for PyErr
Source§fn from(err: LavalinkError) -> PyErr
fn from(err: LavalinkError) -> PyErr
Converts to this type from the input type.
Source§impl From<RecvError> for LavalinkError
impl From<RecvError> for LavalinkError
Source§fn from(err: RecvError) -> LavalinkError
fn from(err: RecvError) -> LavalinkError
Converts to this type from the input type.
Source§impl From<ResponseError> for LavalinkError
impl From<ResponseError> for LavalinkError
Source§fn from(err: ResponseError) -> LavalinkError
fn from(err: ResponseError) -> LavalinkError
Converts to this type from the input type.
Source§impl<T> From<SendError<T>> for LavalinkError
impl<T> From<SendError<T>> for LavalinkError
Source§fn from(_: SendError<T>) -> LavalinkError
fn from(_: SendError<T>) -> LavalinkError
Converts to this type from the input type.
Source§impl From<TrackError> for LavalinkError
impl From<TrackError> for LavalinkError
Source§fn from(err: TrackError) -> LavalinkError
fn from(err: TrackError) -> LavalinkError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for LavalinkError
impl !RefUnwindSafe for LavalinkError
impl Send for LavalinkError
impl Sync for LavalinkError
impl Unpin for LavalinkError
impl !UnwindSafe for LavalinkError
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