[−][src]Enum ts3_query::Ts3Error
Variants
Error on response conversion with invalid utf8 data
Fields of Utf8Error
source: FromUtf8Error
Catch-all IO error, contains optional context
Fields of Io
Reached EOF reading response, server closed connection / timeout.
Fields of ConnectionClosed
backtrace: Backtrace
Fields of InvalidSocketAddress
backtrace: Backtrace
Invalid response error. Server returned unexpected data.
Fields of InvalidResponse
TS3-Server error response
Fields of ServerError
response: ErrorResponse
backtrace: Backtrace
Maximum amount of response bytes/lines reached, DDOS limit prevented further data read.
This will probably cause the current connection to become invalid due to remaining data in the connection.
Implementations
impl Ts3Error
[src]
pub fn is_error_response(&self) -> bool
[src]
Returns true if the error is of kind ServerError
pub fn error_response(&self) -> Option<&ErrorResponse>
[src]
Returns the ErrorResponse
if existing.
Trait Implementations
impl Debug for Ts3Error
[src]
impl Display for Ts3Error
[src]
impl Error for Ts3Error where
Self: Debug + Display,
[src]
Self: Debug + Display,
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl ErrorCompat for Ts3Error
[src]
impl From<Error> for Ts3Error
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Ts3Error
impl Send for Ts3Error
impl Sync for Ts3Error
impl Unpin for Ts3Error
impl !UnwindSafe for Ts3Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]
T: 'static + Error,
fn as_error_source(&self) -> &(dyn Error + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,