[][src]Struct trust_dns_server::authority::MessageResponse

pub struct MessageResponse<'q, 'a, A = Box<dyn Iterator<Item = &'a Record> + Send + 'a>, N = Box<dyn Iterator<Item = &'a Record> + Send + 'a>, S = Box<dyn Iterator<Item = &'a Record> + Send + 'a>, D = Box<dyn Iterator<Item = &'a Record> + Send + 'a>> 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, 
{ /* fields omitted */ }

A EncodableMessage with borrowed data for Responses in the Server

Implementations

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, 
[src]

pub fn header(&self) -> &Header[src]

Returns the header of the message

pub fn set_edns(&mut self, edns: Edns) -> &mut Self[src]

Set the EDNS options for the Response

pub fn destructive_emit(self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>[src]

Consumes self, and emits to the encoder.

Trait Implementations

impl<'q, 'a, A: Debug, N: Debug, S: Debug, D: Debug> Debug for 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, 
[src]

Auto Trait Implementations

impl<'q, 'a, A, N, S, D> RefUnwindSafe for MessageResponse<'q, 'a, A, N, S, D> where
    A: RefUnwindSafe,
    D: RefUnwindSafe,
    N: RefUnwindSafe,
    S: RefUnwindSafe

impl<'q, 'a, A, N, S, D> Send for MessageResponse<'q, 'a, A, N, S, D>

impl<'q, 'a, A, N, S, D> Sync for MessageResponse<'q, 'a, A, N, S, D> where
    A: Sync,
    D: Sync,
    N: Sync,
    S: Sync

impl<'q, 'a, A, N, S, D> Unpin for MessageResponse<'q, 'a, A, N, S, D> where
    A: Unpin,
    D: Unpin,
    N: Unpin,
    S: Unpin

impl<'q, 'a, A, N, S, D> UnwindSafe for MessageResponse<'q, 'a, A, N, S, D> where
    A: UnwindSafe,
    D: UnwindSafe,
    N: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,