#[non_exhaustive]pub enum AppPacket<'a> {
Tls(TlsClientHello<'a>),
Ssh(SshPacket<'a>),
Mqtt(MqttPacket<'a>),
Modbus(ModbusTcpPacket<'a>),
Radius(RadiusPacket<'a>),
Mdns(MdnsPacket<'a>),
Llmnr(LlmnrPacket<'a>),
Netbios(NetbiosNsPacket<'a>),
Smb2(Smb2Header<'a>),
Rdp(TpktHeader<'a>),
}Expand description
Unified application-layer packet enum covering v1.1 and v1.2 protocols.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tls(TlsClientHello<'a>)
Ssh(SshPacket<'a>)
Mqtt(MqttPacket<'a>)
Modbus(ModbusTcpPacket<'a>)
Radius(RadiusPacket<'a>)
Mdns(MdnsPacket<'a>)
Llmnr(LlmnrPacket<'a>)
Netbios(NetbiosNsPacket<'a>)
Smb2(Smb2Header<'a>)
Rdp(TpktHeader<'a>)
Implementations§
Trait Implementations§
Source§impl<'a> From<LlmnrPacket<'a>> for AppPacket<'a>
impl<'a> From<LlmnrPacket<'a>> for AppPacket<'a>
Source§fn from(p: LlmnrPacket<'a>) -> Self
fn from(p: LlmnrPacket<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MdnsPacket<'a>> for AppPacket<'a>
impl<'a> From<MdnsPacket<'a>> for AppPacket<'a>
Source§fn from(p: MdnsPacket<'a>) -> Self
fn from(p: MdnsPacket<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ModbusTcpPacket<'a>> for AppPacket<'a>
impl<'a> From<ModbusTcpPacket<'a>> for AppPacket<'a>
Source§fn from(p: ModbusTcpPacket<'a>) -> Self
fn from(p: ModbusTcpPacket<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MqttPacket<'a>> for AppPacket<'a>
impl<'a> From<MqttPacket<'a>> for AppPacket<'a>
Source§fn from(p: MqttPacket<'a>) -> Self
fn from(p: MqttPacket<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NetbiosNsPacket<'a>> for AppPacket<'a>
impl<'a> From<NetbiosNsPacket<'a>> for AppPacket<'a>
Source§fn from(p: NetbiosNsPacket<'a>) -> Self
fn from(p: NetbiosNsPacket<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<RadiusPacket<'a>> for AppPacket<'a>
impl<'a> From<RadiusPacket<'a>> for AppPacket<'a>
Source§fn from(p: RadiusPacket<'a>) -> Self
fn from(p: RadiusPacket<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Smb2Header<'a>> for AppPacket<'a>
impl<'a> From<Smb2Header<'a>> for AppPacket<'a>
Source§fn from(p: Smb2Header<'a>) -> Self
fn from(p: Smb2Header<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TlsClientHello<'a>> for AppPacket<'a>
impl<'a> From<TlsClientHello<'a>> for AppPacket<'a>
Source§fn from(p: TlsClientHello<'a>) -> Self
fn from(p: TlsClientHello<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TpktHeader<'a>> for AppPacket<'a>
impl<'a> From<TpktHeader<'a>> for AppPacket<'a>
Source§fn from(p: TpktHeader<'a>) -> Self
fn from(p: TpktHeader<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for AppPacket<'a>
impl<'a> RefUnwindSafe for AppPacket<'a>
impl<'a> Send for AppPacket<'a>
impl<'a> Sync for AppPacket<'a>
impl<'a> Unpin for AppPacket<'a>
impl<'a> UnsafeUnpin for AppPacket<'a>
impl<'a> UnwindSafe for AppPacket<'a>
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