pub struct DnsQuery {
pub name: String,
pub record_type: u16,
pub class: u16,
}Expand description
Вопрос в пакете DNS: о каком имени и какого типа записи спрашивают.
Fields§
§name: StringИмя без завершающей точки.
record_type: u16Тип записи (GNUNET_DNSPARSER_TYPE_*), например 1 для A.
class: u16Класс; 1 для интернета.
Trait Implementations§
impl Eq for DnsQuery
impl StructuralPartialEq for DnsQuery
Auto Trait Implementations§
impl Freeze for DnsQuery
impl RefUnwindSafe for DnsQuery
impl Send for DnsQuery
impl Sync for DnsQuery
impl Unpin for DnsQuery
impl UnsafeUnpin for DnsQuery
impl UnwindSafe for DnsQuery
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