pub struct DnsRcode(pub u8);Expand description
DNS response code.
Tuple Fields§
§0: u8Implementations§
Source§impl Rcode
impl Rcode
pub const NoError: Self
pub const FormErr: Self
pub const ServFail: Self
pub const NXDomain: Self
pub const NotImp: Self
pub const Refused: Self
pub const YXDomain: Self
pub const YXRRSet: Self
pub const NXRRSet: Self
pub const NotAuth: Self
pub const NotZone: Self
Trait Implementations§
impl Copy for Rcode
impl Eq for Rcode
Source§impl Ord for Rcode
impl Ord for Rcode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Rcode
impl PartialOrd for Rcode
impl StructuralPartialEq for Rcode
Auto Trait Implementations§
impl Freeze for Rcode
impl RefUnwindSafe for Rcode
impl Send for Rcode
impl Sync for Rcode
impl Unpin for Rcode
impl UnsafeUnpin for Rcode
impl UnwindSafe for Rcode
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