pub enum BedrockPingError {
AddressParse {
source: AddrParseError,
address: String,
backtrace: Backtrace,
},
NoResponse {
backtrace: Backtrace,
},
ServerInfoParse {
source: ServerInfoParseError,
backtrace: Backtrace,
},
Io {
source: Error,
backtrace: Backtrace,
},
DNSLookupFailed {
address: String,
backtrace: Backtrace,
},
ConnectFailed {
source: Error,
backtrace: Backtrace,
},
}Variants§
AddressParse
Failed to parse address.
NoResponse
The server did not respond to the ping request.
ServerInfoParse
Failed to parse server info.
Io
I/O error.
DNSLookupFailed
DNS lookup failed.
ConnectFailed
Failed to open socket.
Trait Implementations§
Source§impl Debug for BedrockPingError
impl Debug for BedrockPingError
Source§impl Display for BedrockPingError
impl Display for BedrockPingError
Source§impl Error for BedrockPingError
impl Error for BedrockPingError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for BedrockPingError
impl ErrorCompat for BedrockPingError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<Error> for BedrockPingError
impl From<Error> for BedrockPingError
Source§impl From<ServerInfoParseError> for BedrockPingError
impl From<ServerInfoParseError> for BedrockPingError
Source§fn from(error: ServerInfoParseError) -> Self
fn from(error: ServerInfoParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BedrockPingError
impl !RefUnwindSafe for BedrockPingError
impl Send for BedrockPingError
impl Sync for BedrockPingError
impl Unpin for BedrockPingError
impl !UnwindSafe for BedrockPingError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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