pub struct SetHeader {
pub set_id: u16,
pub length: u16,
}Expand description
Set Header - RFC 7011 Section 3.3.2
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Set ID | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Fields§
§set_id: u16Identifies the Set: 2 = Template Set, 3 = Options Template Set, 256 and above = Data Set (the Set ID is the Template ID)
length: u16Total length of the Set, in octets, including the Set Header, all records, and the optional padding
Trait Implementations§
impl Copy for SetHeader
impl Eq for SetHeader
impl StructuralPartialEq for SetHeader
Auto Trait Implementations§
impl Freeze for SetHeader
impl RefUnwindSafe for SetHeader
impl Send for SetHeader
impl Sync for SetHeader
impl Unpin for SetHeader
impl UnsafeUnpin for SetHeader
impl UnwindSafe for SetHeader
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