#[non_exhaustive]pub enum Ipv4RangeError {
InvalidFormat,
InvalidIpAddr,
InvalidRange,
}Available on crate feature
net only.Expand description
Error type for IPv4 range parsing.
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.
InvalidFormat
Invalid range format
The input string is not in the correct range format. Expected format: “start-end” (e.g., “192.168.1.0-192.168.1.255”).
InvalidIpAddr
Invalid IP address
One of the IP addresses in the range is invalid.
InvalidRange
Invalid range
The start address is greater than the end address.
Trait Implementations§
Source§impl Clone for Ipv4RangeError
impl Clone for Ipv4RangeError
Source§fn clone(&self) -> Ipv4RangeError
fn clone(&self) -> Ipv4RangeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Ipv4RangeError
impl Debug for Ipv4RangeError
Source§impl<'de> Deserialize<'de> for Ipv4RangeError
impl<'de> Deserialize<'de> for Ipv4RangeError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Ipv4RangeError
impl Display for Ipv4RangeError
Source§impl Error for Ipv4RangeError
Available on crate feature std only.
impl Error for Ipv4RangeError
Available on crate feature
std only.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 PartialEq for Ipv4RangeError
impl PartialEq for Ipv4RangeError
Source§impl Serialize for Ipv4RangeError
impl Serialize for Ipv4RangeError
impl Copy for Ipv4RangeError
impl Eq for Ipv4RangeError
impl StructuralPartialEq for Ipv4RangeError
Auto Trait Implementations§
impl Freeze for Ipv4RangeError
impl RefUnwindSafe for Ipv4RangeError
impl Send for Ipv4RangeError
impl Sync for Ipv4RangeError
impl Unpin for Ipv4RangeError
impl UnsafeUnpin for Ipv4RangeError
impl UnwindSafe for Ipv4RangeError
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