Struct trust_dns_server::authority::MessageResponse
source · [−]pub struct MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals> where
Answers: Iterator<Item = &'a Record> + Send + 'a,
NameServers: Iterator<Item = &'a Record> + Send + 'a,
Soa: Iterator<Item = &'a Record> + Send + 'a,
Additionals: Iterator<Item = &'a Record> + Send + 'a, { /* private fields */ }
Expand description
A EncodableMessage with borrowed data for Responses in the Server
Implementations
sourceimpl<'q, 'a, A, N, S, D> MessageResponse<'q, 'a, A, N, S, D> where
A: Iterator<Item = &'a Record> + Send + 'a,
N: Iterator<Item = &'a Record> + Send + 'a,
S: Iterator<Item = &'a Record> + Send + 'a,
D: Iterator<Item = &'a Record> + Send + 'a,
impl<'q, 'a, A, N, S, D> MessageResponse<'q, 'a, A, N, S, D> where
A: Iterator<Item = &'a Record> + Send + 'a,
N: Iterator<Item = &'a Record> + Send + 'a,
S: Iterator<Item = &'a Record> + Send + 'a,
D: Iterator<Item = &'a Record> + Send + 'a,
sourcepub fn destructive_emit(
self,
encoder: &mut BinEncoder<'_>
) -> ProtoResult<ResponseInfo>
pub fn destructive_emit(
self,
encoder: &mut BinEncoder<'_>
) -> ProtoResult<ResponseInfo>
Consumes self, and emits to the encoder.
Trait Implementations
sourceimpl<'q, 'a, Answers: Debug, NameServers: Debug, Soa: Debug, Additionals: Debug> Debug for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals> where
Answers: Iterator<Item = &'a Record> + Send + 'a,
NameServers: Iterator<Item = &'a Record> + Send + 'a,
Soa: Iterator<Item = &'a Record> + Send + 'a,
Additionals: Iterator<Item = &'a Record> + Send + 'a,
impl<'q, 'a, Answers: Debug, NameServers: Debug, Soa: Debug, Additionals: Debug> Debug for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals> where
Answers: Iterator<Item = &'a Record> + Send + 'a,
NameServers: Iterator<Item = &'a Record> + Send + 'a,
Soa: Iterator<Item = &'a Record> + Send + 'a,
Additionals: Iterator<Item = &'a Record> + Send + 'a,
Auto Trait Implementations
impl<'q, 'a, Answers, NameServers, Soa, Additionals> RefUnwindSafe for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals> where
Additionals: RefUnwindSafe,
Answers: RefUnwindSafe,
NameServers: RefUnwindSafe,
Soa: RefUnwindSafe,
impl<'q, 'a, Answers, NameServers, Soa, Additionals> Send for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals>
impl<'q, 'a, Answers, NameServers, Soa, Additionals> Sync for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals> where
Additionals: Sync,
Answers: Sync,
NameServers: Sync,
Soa: Sync,
impl<'q, 'a, Answers, NameServers, Soa, Additionals> Unpin for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals> where
Additionals: Unpin,
Answers: Unpin,
NameServers: Unpin,
Soa: Unpin,
impl<'q, 'a, Answers, NameServers, Soa, Additionals> UnwindSafe for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals> where
Additionals: UnwindSafe,
Answers: UnwindSafe,
NameServers: UnwindSafe,
Soa: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub 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