Enum updns::ResultCode
source · pub enum ResultCode {
NOERROR,
FORMERR,
SERVFAIL,
NXDOMAIN,
NOTIMP,
REFUSED,
}
Variants§
Implementations§
source§impl ResultCode
impl ResultCode
pub fn from_num(num: u8) -> ResultCode
Trait Implementations§
source§impl Clone for ResultCode
impl Clone for ResultCode
source§fn clone(&self) -> ResultCode
fn clone(&self) -> ResultCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResultCode
impl Debug for ResultCode
source§impl PartialEq<ResultCode> for ResultCode
impl PartialEq<ResultCode> for ResultCode
source§fn eq(&self, other: &ResultCode) -> bool
fn eq(&self, other: &ResultCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.