Struct domain::bits::message_builder::OptBuilder
[−]
[src]
pub struct OptBuilder { /* fields omitted */ }
A type for building an OPT record on the fly.
The OPT record is part of the additional section. You can therefore get
hold of a value of this type through the AdditionalBuilder::build_opt()
method.
You use this value to add options to the record via the push()
method.
Once you are done, call complete()
to finish up the record and get the
additional builder back.
Methods
impl OptBuilder
[src]
pub fn push<O: OptData>(&mut self, option: O) -> ComposeResult<()>
[src]
Pushes an option to the OPT record.
pub fn complete(self) -> ComposeResult<AdditionalBuilder>
[src]
Completes the OPT record and returns the additional section builder.
Trait Implementations
impl Clone for OptBuilder
[src]
fn clone(&self) -> OptBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more