pub struct InformationRequestHeaderTagBuilder { /* private fields */ }Expand description
Helper to build the dynamically sized InformationRequestHeaderTag
at runtime. The information request tag has a dedicated builder because this way one
can dynamically attach several requests to it. Otherwise, the number of requested tags
must be known at compile time.
Implementations
sourceimpl InformationRequestHeaderTagBuilder
impl InformationRequestHeaderTagBuilder
sourcepub fn new(flag: HeaderTagFlag) -> Self
pub fn new(flag: HeaderTagFlag) -> Self
New builder.
sourcepub fn expected_len(&self) -> usize
pub fn expected_len(&self) -> usize
Returns the expected length of the information request tag,
when the build-method gets called.
sourcepub fn add_ir(self, tag: MbiTagType) -> Self
pub fn add_ir(self, tag: MbiTagType) -> Self
Adds an MbiTagType to the information request.
sourcepub fn add_irs(self, tags: &[MbiTagType]) -> Self
pub fn add_irs(self, tags: &[MbiTagType]) -> Self
Adds multiple MbiTagType to the information request.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InformationRequestHeaderTagBuilder
impl Send for InformationRequestHeaderTagBuilder
impl Sync for InformationRequestHeaderTagBuilder
impl Unpin for InformationRequestHeaderTagBuilder
impl UnwindSafe for InformationRequestHeaderTagBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more