pub struct ClientAttTableBuilder { /* private fields */ }Expand description
A builder for ClientAttTable.
Entries must be pushed in ascending key order. Use build() to finalize.
Implementations§
Source§impl ClientAttTableBuilder
impl ClientAttTableBuilder
Sourcepub fn push(&mut self, key: u16, value_len: u16, variable_len: bool)
pub fn push(&mut self, key: u16, value_len: u16, variable_len: bool)
Adds an entry with the given attribute handle and value size.
§Panics
Panics if key is not greater than the previously pushed keys.
Sourcepub fn build(self) -> ClientAttTable
pub fn build(self) -> ClientAttTable
Consumes the builder and returns the completed ClientAttTable.
Trait Implementations§
Source§impl Clone for ClientAttTableBuilder
impl Clone for ClientAttTableBuilder
Source§fn clone(&self) -> ClientAttTableBuilder
fn clone(&self) -> ClientAttTableBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientAttTableBuilder
impl RefUnwindSafe for ClientAttTableBuilder
impl Send for ClientAttTableBuilder
impl Sync for ClientAttTableBuilder
impl Unpin for ClientAttTableBuilder
impl UnwindSafe for ClientAttTableBuilder
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