pub enum Set {
Template {
header: SetHeader,
records: Vec<TemplateRecord>,
},
OptionsTemplate {
header: SetHeader,
records: Vec<OptionsTemplateRecord>,
},
Data {
header: SetHeader,
records: Vec<DataRecord>,
},
UndecodedData {
header: SetHeader,
payload: Vec<u8>,
},
Reserved {
header: SetHeader,
payload: Vec<u8>,
},
}Expand description
IPFIX Set - RFC 7011 Section 3.3
Variants§
Template
Template Set (Set ID 2)
OptionsTemplate
Options Template Set (Set ID 3)
Data
Data Set decoded with a known Template (Set ID = Template ID >= 256)
UndecodedData
Data Set whose Template is unknown to the decoder. RFC 7011 Section 8 lets the Collecting Process buffer or drop it; the raw Set content (without the Set Header) is kept so the caller can decide.
Reserved
Set with a reserved Set ID (0, 1 or 4-255), kept as raw content
Implementations§
Trait Implementations§
impl StructuralPartialEq for Set
Auto Trait Implementations§
impl Freeze for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnsafeUnpin for Set
impl UnwindSafe for Set
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