Struct nex_packet::dns::DnsResponse
source · pub struct DnsResponse {
pub name_tag: u16be,
pub rtype: DnsType,
pub rclass: DnsClass,
pub ttl: u32be,
pub data_len: u16be,
pub data: Vec<u8>,
pub payload: Vec<u8>,
}Expand description
DNS response packet structure.
Fields§
§name_tag: u16be§rtype: DnsType§rclass: DnsClass§ttl: u32be§data_len: u16be§data: Vec<u8>§payload: Vec<u8>Trait Implementations§
source§impl Clone for DnsResponse
impl Clone for DnsResponse
source§fn clone(&self) -> DnsResponse
fn clone(&self) -> DnsResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DnsResponse
impl RefUnwindSafe for DnsResponse
impl Send for DnsResponse
impl Sync for DnsResponse
impl Unpin for DnsResponse
impl UnwindSafe for DnsResponse
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