pub enum EtchDnsError {
ConfigParseError(String),
ConfigReadError(String),
SocketBindError(Error),
SendError(Error),
ReceiveError(Error),
DnsProcessingError(DnsError),
ClientError(String),
PrivilegeDropError(String),
Other(String),
}Expand description
Main error type for the EtchDNS application
Variants§
ConfigParseError(String)
Error occurred while parsing configuration
ConfigReadError(String)
Error occurred while reading configuration file
SocketBindError(Error)
Error occurred while binding to socket
SendError(Error)
Error occurred while sending data
ReceiveError(Error)
Error occurred while receiving data
DnsProcessingError(DnsError)
Error occurred while processing DNS packet
ClientError(String)
Error occurred while managing client connections
PrivilegeDropError(String)
Error occurred while dropping privileges
Other(String)
Other errors
Implementations§
Source§impl EtchDnsError
impl EtchDnsError
Sourcepub fn into_receiver(self) -> Option<Receiver<DnsResponse>>
pub fn into_receiver(self) -> Option<Receiver<DnsResponse>>
Extracts the receiver from an AlreadyInFlight error in DnsProcessingError
Trait Implementations§
Source§impl Debug for EtchDnsError
impl Debug for EtchDnsError
Source§impl Display for EtchDnsError
impl Display for EtchDnsError
Source§impl Error for EtchDnsError
impl Error for EtchDnsError
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 !RefUnwindSafe for EtchDnsError
impl !UnwindSafe for EtchDnsError
impl Freeze for EtchDnsError
impl Send for EtchDnsError
impl Sync for EtchDnsError
impl Unpin for EtchDnsError
impl UnsafeUnpin for EtchDnsError
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