pub struct Opt<'a> {
pub code: u16,
pub data: Characters<'a>,
}
Expand description
§Option record
This record is used to store options for the DNS protocol.
Fields§
§code: u16
The code for the option.
data: Characters<'a>
The data for the option.
Trait Implementations§
impl<'a> Copy 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