pub enum Error {
Show 18 variants
ConnectionClosed,
OptTooLong,
MessageBuilderPushError,
MessageParseError,
RedundantTransportNotFound,
FormError,
ShortMessage,
StreamLongMessage,
StreamIdleTimeout,
StreamReceiveError,
StreamReadError(Arc<Error>),
StreamReadTimeout,
StreamTooManyOutstandingQueries,
StreamWriteError(Arc<Error>),
StreamUnexpectedEndOfData,
WrongReplyForQuery,
NoTransportAvailable,
Dgram(Arc<QueryError>),
}Expand description
Error type for client transports.
Variants§
ConnectionClosed
Connection was already closed.
OptTooLong
The OPT record has become too long.
MessageBuilderPushError
PushError from MessageBuilder.
MessageParseError
ParseError from Message.
RedundantTransportNotFound
Underlying transport not found in redundant connection
FormError
The message violated some constraints.
ShortMessage
Octet sequence too short to be a valid DNS message.
StreamLongMessage
Message too long for stream transport.
StreamIdleTimeout
Stream transport closed because it was idle (for too long).
StreamReceiveError
Error receiving a reply.
StreamReadError(Arc<Error>)
Reading from stream gave an error.
StreamReadTimeout
Reading from stream took too long.
StreamTooManyOutstandingQueries
Too many outstand queries on a single stream transport.
StreamWriteError(Arc<Error>)
Writing to a stream gave an error.
StreamUnexpectedEndOfData
Reading for a stream ended unexpectedly.
WrongReplyForQuery
Reply does not match the query.
NoTransportAvailable
No transport available to transmit request.
Dgram(Arc<QueryError>)
An error happened in the datagram transport.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()