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§
impl<'a> Eq for OPTCode<'a>
impl<'a> StructuralPartialEq for OPTCode<'a>
Auto Trait Implementations§
impl<'a> Freeze for OPTCode<'a>
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
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
)