Struct trust_dns_proto::op::message::MessageParts
source · [−]pub struct MessageParts {
pub header: Header,
pub queries: Vec<Query>,
pub answers: Vec<Record>,
pub name_servers: Vec<Record>,
pub additionals: Vec<Record>,
pub sig0: Vec<Record>,
pub edns: Option<Edns>,
}
Expand description
Consumes Message
giving public access to fields in Message
so they can be
destructured and taken by value
use trust_dns_proto::op::{Message, MessageParts};
let msg = Message::new();
let MessageParts { queries, .. } = msg.into_parts();
Fields
header: Header
message header
queries: Vec<Query>
message queries
answers: Vec<Record>
message answers
name_servers: Vec<Record>
message name_servers
additionals: Vec<Record>
message additional records
sig0: Vec<Record>
sig0 or tsig
edns: Option<Edns>
optional edns records
Trait Implementations
sourceimpl Clone for MessageParts
impl Clone for MessageParts
sourcefn clone(&self) -> MessageParts
fn clone(&self) -> MessageParts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MessageParts
impl Debug for MessageParts
sourceimpl Default for MessageParts
impl Default for MessageParts
sourcefn default() -> MessageParts
fn default() -> MessageParts
Returns the “default value” for a type. Read more
sourceimpl From<Message> for MessageParts
impl From<Message> for MessageParts
sourceimpl PartialEq<MessageParts> for MessageParts
impl PartialEq<MessageParts> for MessageParts
sourcefn eq(&self, other: &MessageParts) -> bool
fn eq(&self, other: &MessageParts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MessageParts) -> bool
fn ne(&self, other: &MessageParts) -> bool
This method tests for !=
.
impl StructuralPartialEq for MessageParts
Auto Trait Implementations
impl RefUnwindSafe for MessageParts
impl Send for MessageParts
impl Sync for MessageParts
impl Unpin for MessageParts
impl UnwindSafe for MessageParts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more