pub struct OPT<'a> {
pub opt_codes: Vec<OPTCode<'a>>,
pub udp_packet_size: u16,
pub version: u8,
}
Expand description
OPT is a pseudo-rr used to carry control information
If an OPT record is present in a received request, responders MUST include an OPT record in their respective responses.
OPT RRs MUST NOT be cached, forwarded, or stored in or loaded from master files.
There must be only one OPT record in the message. If a query message with more than one OPT RR is received, a FORMERR (RCODE=1) MUST be returned.
Fields§
§opt_codes: Vec<OPTCode<'a>>
The variable part of this OPT RR
udp_packet_size: u16
UDP packet size supported by the responder
version: u8
EDNS version supported by the responder
Implementations§
Trait Implementations§
impl<'a> Eq for OPT<'a>
impl<'a> StructuralPartialEq for OPT<'a>
Auto Trait Implementations§
impl<'a> Freeze for OPT<'a>
impl<'a> RefUnwindSafe for OPT<'a>
impl<'a> Send for OPT<'a>
impl<'a> Sync for OPT<'a>
impl<'a> Unpin for OPT<'a>
impl<'a> UnwindSafe for OPT<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)