pub struct MessageResponseBuilder<'q> { /* private fields */ }
Expand description

A builder for MessageResponses

Implementations

Constructs a new response builder

Arguments
  • message - original request message to associate with the response

Associate EDNS with the Response

Constructs the new MessageResponse with associated Header

Arguments
  • header - set of Headers for the Message

Construct a Response with no associated records

Constructs a new error MessageResponse with associated settings

Arguments
  • id - request id to which this is a response
  • op_code - operation for which this is a response
  • response_code - the type of error

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more