pub enum Error<Lookup: Debug> {
Lookup(Lookup),
RecordParsing(Error),
NoTargets,
}
Expand description
Errors encountered by a SrvClient
.
Variants§
Lookup(Lookup)
SRV lookup errors
RecordParsing(Error)
SRV record parsing errors
NoTargets
Produced when there are no SRV targets for a client to use
Trait Implementations§
Source§impl<Lookup: Debug> Error for Error<Lookup>
impl<Lookup: Debug> Error for Error<Lookup>
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()
Auto Trait Implementations§
impl<Lookup> Freeze for Error<Lookup>where
Lookup: Freeze,
impl<Lookup> RefUnwindSafe for Error<Lookup>where
Lookup: RefUnwindSafe,
impl<Lookup> Send for Error<Lookup>where
Lookup: Send,
impl<Lookup> Sync for Error<Lookup>where
Lookup: Sync,
impl<Lookup> Unpin for Error<Lookup>where
Lookup: Unpin,
impl<Lookup> UnwindSafe for Error<Lookup>where
Lookup: UnwindSafe,
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