pub enum ClientIpError {
InvalidIp(String),
InvalidPrefix(String),
}Available on crate feature
tower only.Expand description
Errors from IpNet::parse.
Variants§
InvalidIp(String)
The address portion is not a valid IP address.
InvalidPrefix(String)
The prefix length is not a number or exceeds the address family’s width (32 for IPv4, 128 for IPv6).
Trait Implementations§
Source§impl Clone for ClientIpError
impl Clone for ClientIpError
Source§impl Debug for ClientIpError
impl Debug for ClientIpError
Source§impl Display for ClientIpError
impl Display for ClientIpError
impl Eq for ClientIpError
Source§impl Error for ClientIpError
impl Error for ClientIpError
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 ClientIpError
impl PartialEq for ClientIpError
impl StructuralPartialEq for ClientIpError
Auto Trait Implementations§
impl Freeze for ClientIpError
impl RefUnwindSafe for ClientIpError
impl Send for ClientIpError
impl Sync for ClientIpError
impl Unpin for ClientIpError
impl UnsafeUnpin for ClientIpError
impl UnwindSafe for ClientIpError
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