pub enum XdbError {
InvalidIP(String),
InvalidIPVersion(String),
HeaderParseError(String),
RangeIndexOutError(String),
AddrParseError(AddrParseError),
ParseIntError(ParseIntError),
IoError(Error),
InfallibleError(Infallible),
InvalidIpUTF8Format(FromUtf8Error),
SliceError(TryFromSliceError),
}Expand description
XdbError struct
Variants§
InvalidIP(String)
InvalidIPVersion(String)
HeaderParseError(String)
RangeIndexOutError(String)
AddrParseError(AddrParseError)
ParseIntError(ParseIntError)
IoError(Error)
InfallibleError(Infallible)
InvalidIpUTF8Format(FromUtf8Error)
SliceError(TryFromSliceError)
Trait Implementations§
Source§impl Error for XdbError
impl Error for XdbError
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<AddrParseError> for XdbError
impl From<AddrParseError> for XdbError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for XdbError
impl From<FromUtf8Error> for XdbError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for XdbError
impl From<Infallible> for XdbError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for XdbError
impl From<ParseIntError> for XdbError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for XdbError
impl From<TryFromSliceError> for XdbError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XdbError
impl !RefUnwindSafe for XdbError
impl Send for XdbError
impl Sync for XdbError
impl Unpin for XdbError
impl !UnwindSafe for XdbError
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