Struct simple_dns::rdata::OPTCode
source · pub struct OPTCode<'a> {
pub code: u16,
pub data: Cow<'a, [u8]>,
}
Expand description
Represents the variable part of an OPT rr
Fields§
§code: u16
Assigned by the Expert Review process as defined by the DNSEXT working group and the IESG.
data: Cow<'a, [u8]>
Varies per OPTION-CODE. MUST be treated as a bit field.
Implementations§
Trait Implementations§
source§impl<'a> PartialEq for OPTCode<'a>
impl<'a> PartialEq for OPTCode<'a>
impl<'a> Eq for OPTCode<'a>
impl<'a> StructuralPartialEq for OPTCode<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for OPTCode<'a>
impl<'a> Send for OPTCode<'a>
impl<'a> Sync for OPTCode<'a>
impl<'a> Unpin for OPTCode<'a>
impl<'a> UnwindSafe for OPTCode<'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