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§
Source§impl<'a, A, N, S, D> MessageResponse<'_, 'a, A, N, S, D>
impl<'a, A, N, S, D> MessageResponse<'_, 'a, A, N, S, D>
Sourcepub fn header_mut(&mut self) -> &mut Header
pub fn header_mut(&mut self) -> &mut Header
Get a mutable reference to the header
Sourcepub fn destructive_emit(
self,
encoder: &mut BinEncoder<'_>,
) -> Result<ResponseInfo, ProtoError>
pub fn destructive_emit( self, encoder: &mut BinEncoder<'_>, ) -> Result<ResponseInfo, ProtoError>
Consumes self, and emits to the encoder.
Trait Implementations§
Source§impl<'q, 'a, Answers, NameServers, Soa, Additionals> Debug for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals>
impl<'q, 'a, Answers, NameServers, Soa, Additionals> Debug for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals>
Auto Trait Implementations§
impl<'q, 'a, Answers, NameServers, Soa, Additionals> Freeze for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals>
impl<'q, 'a, Answers, NameServers, Soa, Additionals> RefUnwindSafe for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals>where
Answers: RefUnwindSafe,
NameServers: RefUnwindSafe,
Soa: RefUnwindSafe,
Additionals: 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>
impl<'q, 'a, Answers, NameServers, Soa, Additionals> Unpin for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals>
impl<'q, 'a, Answers, NameServers, Soa, Additionals> UnwindSafe for MessageResponse<'q, 'a, Answers, NameServers, Soa, Additionals>
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