pub struct RtnetlinkProtocol;Expand description
RTNetlink protocol parser.
Parses routing netlink messages including link, address, and route operations.
Trait Implementations§
Source§impl Clone for RtnetlinkProtocol
impl Clone for RtnetlinkProtocol
Source§fn clone(&self) -> RtnetlinkProtocol
fn clone(&self) -> RtnetlinkProtocol
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 RtnetlinkProtocol
impl Debug for RtnetlinkProtocol
Source§impl From<RtnetlinkProtocol> for BuiltinProtocol
impl From<RtnetlinkProtocol> for BuiltinProtocol
Source§fn from(p: RtnetlinkProtocol) -> Self
fn from(p: RtnetlinkProtocol) -> Self
Converts to this type from the input type.
Source§impl Protocol for RtnetlinkProtocol
impl Protocol for RtnetlinkProtocol
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Human-readable display name.
Source§fn can_parse(&self, context: &ParseContext) -> Option<u32>
fn can_parse(&self, context: &ParseContext) -> Option<u32>
Check if this parser can handle the given context.
Returns a priority score (higher = more specific match).
Returns
None if this parser cannot handle the context.Source§fn parse<'a>(&self, data: &'a [u8], context: &ParseContext) -> ParseResult<'a>
fn parse<'a>(&self, data: &'a [u8], context: &ParseContext) -> ParseResult<'a>
Parse bytes into structured fields.
Source§fn schema_fields(&self) -> Vec<FieldDescriptor>
fn schema_fields(&self) -> Vec<FieldDescriptor>
Return the schema fields this protocol produces.
Source§fn dependencies(&self) -> &'static [&'static str]
fn dependencies(&self) -> &'static [&'static str]
Protocols that must be parsed before this one can be reached. Read more
Source§fn child_protocols(&self) -> &[&'static str]
fn child_protocols(&self) -> &[&'static str]
Protocols that might follow this one.
Source§fn payload_mode(&self) -> PayloadMode
fn payload_mode(&self) -> PayloadMode
How should remaining bytes be handled after parsing? Read more
Source§fn parse_projected<'a>(
&self,
data: &'a [u8],
context: &ParseContext,
_fields: Option<&HashSet<String>>,
) -> ParseResult<'a>
fn parse_projected<'a>( &self, data: &'a [u8], context: &ParseContext, _fields: Option<&HashSet<String>>, ) -> ParseResult<'a>
Parse with field projection - only extract requested fields. Read more
Source§fn cheap_fields(&self) -> &'static [&'static str]
fn cheap_fields(&self) -> &'static [&'static str]
Returns fields that are “cheap” to extract (header fields parsed anyway). Read more
Source§fn expensive_fields(&self) -> &'static [&'static str]
fn expensive_fields(&self) -> &'static [&'static str]
Returns fields that are “expensive” to extract. Read more
impl Copy for RtnetlinkProtocol
Auto Trait Implementations§
impl Freeze for RtnetlinkProtocol
impl RefUnwindSafe for RtnetlinkProtocol
impl Send for RtnetlinkProtocol
impl Sync for RtnetlinkProtocol
impl Unpin for RtnetlinkProtocol
impl UnwindSafe for RtnetlinkProtocol
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