pub struct RequestMessage<Octs: AsRef<[u8]>> { /* private fields */ }
Expand description
Object that implements the ComposeRequest trait for a Message object.
Implementations§
Trait Implementations§
source§impl<Octs: Clone + AsRef<[u8]>> Clone for RequestMessage<Octs>
impl<Octs: Clone + AsRef<[u8]>> Clone for RequestMessage<Octs>
source§fn clone(&self) -> RequestMessage<Octs>
fn clone(&self) -> RequestMessage<Octs>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Octs: AsRef<[u8]> + Debug + Octets + Send + Sync> ComposeRequest for RequestMessage<Octs>
impl<Octs: AsRef<[u8]> + Debug + Octets + Send + Sync> ComposeRequest for RequestMessage<Octs>
source§fn append_message<Target: Composer>(
&self,
target: Target,
) -> Result<AdditionalBuilder<Target>, CopyRecordsError>
fn append_message<Target: Composer>( &self, target: Target, ) -> Result<AdditionalBuilder<Target>, CopyRecordsError>
Appends the final message to a provided composer.
source§fn to_vec(&self) -> Result<Vec<u8>, Error>
fn to_vec(&self) -> Result<Vec<u8>, Error>
Create a message that captures the recorded changes and convert to
a Vec.
source§fn to_message(&self) -> Result<Message<Vec<u8>>, Error>
fn to_message(&self) -> Result<Message<Vec<u8>>, Error>
Create a message that captures the recorded changes.
source§fn header_mut(&mut self) -> &mut Header
fn header_mut(&mut self) -> &mut Header
Return a reference to a mutable Header to record changes to the header.
source§fn set_udp_payload_size(&mut self, value: u16)
fn set_udp_payload_size(&mut self, value: u16)
Set the UDP payload size.
source§fn set_dnssec_ok(&mut self, value: bool)
fn set_dnssec_ok(&mut self, value: bool)
Set the DNSSEC OK flag.
source§fn add_opt(&mut self, opt: &impl ComposeOptData) -> Result<(), LongOptData>
fn add_opt(&mut self, opt: &impl ComposeOptData) -> Result<(), LongOptData>
Add an EDNS option.
source§impl<T: SendRequest<RequestMessage<Octs>> + ?Sized, Octs: Octets> SendRequest<RequestMessage<Octs>> for Box<T>
impl<T: SendRequest<RequestMessage<Octs>> + ?Sized, Octs: Octets> SendRequest<RequestMessage<Octs>> for Box<T>
source§fn send_request(
&self,
request_msg: RequestMessage<Octs>,
) -> Box<dyn GetResponse + Send + Sync>
fn send_request( &self, request_msg: RequestMessage<Octs>, ) -> Box<dyn GetResponse + Send + Sync>
Request function that takes a ComposeRequest type.
source§impl<T: SendRequestMulti<RequestMessage<Octs>> + ?Sized, Octs: Octets> SendRequestMulti<RequestMessage<Octs>> for Box<T>
impl<T: SendRequestMulti<RequestMessage<Octs>> + ?Sized, Octs: Octets> SendRequestMulti<RequestMessage<Octs>> for Box<T>
source§fn send_request(
&self,
request_msg: RequestMessage<Octs>,
) -> Box<dyn GetResponseMulti + Send + Sync>
fn send_request( &self, request_msg: RequestMessage<Octs>, ) -> Box<dyn GetResponseMulti + Send + Sync>
Request function that takes a ComposeRequestMulti type.
Auto Trait Implementations§
impl<Octs> Freeze for RequestMessage<Octs>where
Octs: Freeze,
impl<Octs> RefUnwindSafe for RequestMessage<Octs>where
Octs: RefUnwindSafe,
impl<Octs> Send for RequestMessage<Octs>where
Octs: Send,
impl<Octs> Sync for RequestMessage<Octs>where
Octs: Sync,
impl<Octs> Unpin for RequestMessage<Octs>where
Octs: Unpin,
impl<Octs> UnwindSafe for RequestMessage<Octs>where
Octs: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.