pub enum RCode {
NoError,
FormErr,
ServFail,
NXDomain,
NotImp,
Refused,
YXDomain,
YXRRSet,
NXRRSet,
NotAuth,
NotZone,
Unassigned(u8),
}Variants§
NoError
FormErr
ServFail
NXDomain
NotImp
Refused
YXDomain
YXRRSet
NXRRSet
NotAuth
NotZone
Unassigned(u8)
Implementations§
Source§impl RCode
impl RCode
pub fn from_flags_byte(byte: u8) -> Self
pub fn to_flags_byte_bits(self) -> u8
Trait Implementations§
impl Copy for RCode
impl Eq 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