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]
impl OptBuilder
pub fn push<O: OptData>(&mut self, option: O) -> ComposeResult<()>
[src]
pub fn push<O: OptData>(&mut self, option: O) -> ComposeResult<()>
Pushes an option to the OPT record.
pub fn complete(self) -> ComposeResult<AdditionalBuilder>
[src]
pub fn complete(self) -> ComposeResult<AdditionalBuilder>
Completes the OPT record and returns the additional section builder.
Trait Implementations
impl Clone for OptBuilder
[src]
impl Clone for OptBuilder
fn clone(&self) -> OptBuilder
[src]
fn clone(&self) -> OptBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for OptBuilder
[src]
impl Debug for OptBuilder
Auto Trait Implementations
impl Send for OptBuilder
impl Send for OptBuilder
impl Sync for OptBuilder
impl Sync for OptBuilder