[−][src]Struct domain_core::bits::query::OptBuilder
A builder for the OPT record of a query.
A mutable reference to this type will be passed to the closure given to
QueryBuilder::add_opt
. It allows manipulation of the record’s header
via the header_mut
method and adding of options via push
.
Limitations
Note that currently this type is not compatible with the various option
types‘ push
functions. This will be addressed soon by redesigning that
mechanism.
Methods
impl<'a> OptBuilder<'a>
[src]
pub fn header(&self) -> &OptHeader
[src]
Returns a reference to the header of the OPT record.
pub fn header_mut(&mut self) -> &mut OptHeader
[src]
Returns a mutable reference to the header of the OPT record.
pub fn push<O: OptData>(&mut self, option: &O)
[src]
Appends an option to the OPT record.
Trait Implementations
Auto Trait Implementations
impl<'a> Send for OptBuilder<'a>
impl<'a> Sync for OptBuilder<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,