pub struct OptBuilder<'a> { /* private fields */ }Expand description
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.
Implementations§
Source§impl<'a> OptBuilder<'a>
impl<'a> OptBuilder<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for OptBuilder<'a>
impl<'a> RefUnwindSafe for OptBuilder<'a>
impl<'a> Send for OptBuilder<'a>
impl<'a> Sync for OptBuilder<'a>
impl<'a> Unpin for OptBuilder<'a>
impl<'a> !UnwindSafe for OptBuilder<'a>
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