pub struct ParsedHeader {
pub timestamp: i64,
pub layer: Layer,
pub direction: Direction,
pub ue_id: Option<u64>,
pub cell: Option<u64>,
pub rnti: Option<u64>,
pub frame: Option<u16>,
pub slot: Option<u8>,
pub channel: Option<String>,
pub connection_info: Option<String>,
}Expand description
Common metadata extracted from either a file header line or WebSocket JSON fields. This serves as the unified input to all layer parsers.
Fields§
§timestamp: i64Timestamp in milliseconds
layer: LayerProtocol layer
direction: DirectionDirection (UL/DL/TO/FROM)
ue_id: Option<u64>UE identifier
cell: Option<u64>Cell identifier
rnti: Option<u64>RNTI
frame: Option<u16>Frame number (PHY)
slot: Option<u8>Slot number (PHY)
channel: Option<String>Channel name (PHY: PDCCH, PDSCH, etc.)
connection_info: Option<String>Connection info (NGAP/GTPU: IP:port)
Implementations§
Source§impl ParsedHeader
impl ParsedHeader
Sourcepub fn from_file_line(first_line: &str) -> Result<Self, ParsingError>
pub fn from_file_line(first_line: &str) -> Result<Self, ParsingError>
Build a ParsedHeader by parsing the first line of a file-format trace. File format: “HH:MM:SS.mmm [LAYER] DIR id1 id2 id3 … payload”
§Errors
Returns a ParsingError if the line cannot be parsed.
Trait Implementations§
Source§impl Clone for ParsedHeader
impl Clone for ParsedHeader
Source§fn clone(&self) -> ParsedHeader
fn clone(&self) -> ParsedHeader
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 moreSource§impl Debug for ParsedHeader
impl Debug for ParsedHeader
Source§impl Default for ParsedHeader
impl Default for ParsedHeader
Source§fn default() -> ParsedHeader
fn default() -> ParsedHeader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedHeader
impl RefUnwindSafe for ParsedHeader
impl Send for ParsedHeader
impl Sync for ParsedHeader
impl Unpin for ParsedHeader
impl UnwindSafe for ParsedHeader
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