pub struct AddressResolveError {
pub kind: AddressResolveErrorKind,
pub code: Option<i32>,
pub message: String,
pub system_error: Option<Error>,
}Expand description
Resolver-specific details stored inside OperationError::Io. Recover this value with io_error.get_ref().and_then(|error| error.downcast_ref::<AddressResolveError>()).
Fields§
§kind: AddressResolveErrorKindThe portable failure category, which selects the io::ErrorKind when converted into an io::Error.
code: Option<i32>A backend-specific resolver code (EAI_* or Winsock). Simulators may omit it. Do not interpret it as errno or carry it between platforms.
message: StringA human-readable description, used as this error’s Display output.
system_error: Option<Error>An underlying system failure, such as errno captured immediately after EAI_SYSTEM.
Trait Implementations§
Source§impl Debug for AddressResolveError
impl Debug for AddressResolveError
Source§impl Display for AddressResolveError
impl Display for AddressResolveError
Source§impl Error for AddressResolveError
impl Error for AddressResolveError
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<AddressResolveError> for Error
impl From<AddressResolveError> for Error
Source§fn from(error: AddressResolveError) -> Self
fn from(error: AddressResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AddressResolveError
impl !UnwindSafe for AddressResolveError
impl Freeze for AddressResolveError
impl Send for AddressResolveError
impl Sync for AddressResolveError
impl Unpin for AddressResolveError
impl UnsafeUnpin for AddressResolveError
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