pub enum StartQueryError {
InvalidName,
NameTooLong,
NoFreeSlot,
}Expand description
Error returned by DnsClient::start_query.
Variants§
InvalidName
The name is empty, or has an empty or too long label.
NameTooLong
The name is longer than DNS_MAX_NAME_SIZE in wire format.
NoFreeSlot
Too many queries are in flight. The limit is
DNS_MAX_QUERY_COUNT.
Trait Implementations§
Source§impl Clone for StartQueryError
impl Clone for StartQueryError
Source§fn clone(&self) -> StartQueryError
fn clone(&self) -> StartQueryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StartQueryError
Source§impl Debug for StartQueryError
impl Debug for StartQueryError
Source§impl Display for StartQueryError
impl Display for StartQueryError
impl Eq for StartQueryError
Source§impl Error for StartQueryError
impl Error for StartQueryError
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 StartQueryError
impl PartialEq for StartQueryError
impl StructuralPartialEq for StartQueryError
Auto Trait Implementations§
impl Freeze for StartQueryError
impl RefUnwindSafe for StartQueryError
impl Send for StartQueryError
impl Sync for StartQueryError
impl Unpin for StartQueryError
impl UnsafeUnpin for StartQueryError
impl UnwindSafe for StartQueryError
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