local_ip_address/
error.rs

1#[derive(thiserror::Error, Debug, PartialEq)]
2pub enum Error {
3    /// Returned when `local_ip` is unable to find the system's local IP address
4    /// in the collection of network interfaces
5    #[error("The Local IP Address wasn't available in the network interfaces list/table")]
6    LocalIpAddressNotFound,
7    /// Returned when an error occurs in the strategy level.
8    /// The error message may include any internal strategy error if available
9    #[error("An error occurred executing the underlying strategy error.\n{0}")]
10    StrategyError(String),
11    /// Returned when the current platform is not yet supported
12    #[error("The current platform: `{0}`, is not supported")]
13    PlatformNotSupported(String),
14}