Enum netflow_parser::protocol::ProtocolTypes

source ·
#[repr(u8)]
pub enum ProtocolTypes {
Show 147 variants Hopopt = 0, Icmp = 1, Igmp = 2, Ggp = 3, Ipv4 = 4, St = 5, Tcp = 6, Cbt = 7, Egp = 8, Igp = 9, Bbcrccmon = 10, Nvpii = 11, Pup = 12, Argus = 13, Emcon = 14, Xnet = 15, Chaos = 16, Udp = 17, Mux = 18, Dcnmeas = 19, Hmp = 20, Prm = 21, Xnxidp = 22, Trunk1 = 23, Trunk2 = 24, Leaf1 = 25, Leaf2 = 26, Rdp = 27, Irtp = 28, Isotp4 = 29, Netblt = 30, Mfensp = 31, Meritinp = 32, Dccp = 33, Threepc = 34, Idpr = 35, Xtp = 36, Ddp = 37, Idprcmtp = 38, Tppp = 39, Il = 40, Ipv6 = 41, Sdrp = 42, Ipv6Route = 43, Ipv6Frag = 44, Idrp = 45, Rsvp = 46, Gre = 47, Dsr = 48, Bna = 49, Esp = 50, Ah = 51, Inlsp = 52, Swipe = 53, Narp = 54, Mobile = 55, Tlsp = 56, Skip = 57, Ipv6Icmp = 58, Ipv6Nonxt = 59, Ipv6Opts = 60, Anydistributedprotocol = 61, Cftp = 62, Anylocalnetwork = 63, Satexpak = 64, Kryptolan = 65, Rvd = 66, Ippc = 67, Anydistributedfilesystem = 68, Satmon = 69, Visa = 70, Ipcv = 71, Cpnx = 72, Cphb = 73, Wsn = 74, Pvp = 75, Brsatmon = 76, Sunnd = 77, Wbmon = 78, Wbexpak = 79, Isoip = 80, Vmtp = 81, Securevmtp = 82, Vines = 83, Iptm = 84, Nsfnetigp = 85, Dgp = 86, Tcf = 87, Eigrp = 88, Ospfigp = 89, Spriterpc = 90, Larp = 91, Mtp = 92, Ax25 = 93, Ipip = 94, Micp = 95, Sccsp = 96, Etherip = 97, Encap = 98, Anyprivateencryptionscheme = 99, Gmtp = 100, Ifmp = 101, Pnni = 102, Pim = 103, Aris = 104, Scps = 105, Qnx = 106, An = 107, Ipcomp = 108, Snp = 109, Compaqpeer = 110, Ipxinip = 111, Vrrp = 112, Pgm = 113, Any0Hopprotocol = 114, L2Tp = 115, Ddx = 116, Iatp = 117, Stp = 118, Srp = 119, Uti = 120, Smp = 121, Sm = 122, Ptp = 123, Isisoveripv4 = 124, Fire = 125, Crtp = 126, Crudp = 127, Sscopmce = 128, Iplt = 129, Sps = 130, Pipe = 131, Sctp = 132, Fc = 133, Rsvpe2Eignore = 134, Mobilityheader = 135, Udplite = 136, Mplsinip = 137, Manet = 138, Hip = 139, Shim6 = 140, Wesp = 141, Rohc = 142, Ethernet = 143, Aggfrag = 144, Unknown = 145, Reserved = 255,
}

Variants§

§

Hopopt = 0

§

Icmp = 1

§

Igmp = 2

§

Ggp = 3

§

Ipv4 = 4

§

St = 5

§

Tcp = 6

§

Cbt = 7

§

Egp = 8

§

Igp = 9

§

Bbcrccmon = 10

§

Nvpii = 11

§

Pup = 12

§

Argus = 13

§

Emcon = 14

§

Xnet = 15

§

Chaos = 16

§

Udp = 17

§

Mux = 18

§

Dcnmeas = 19

§

Hmp = 20

§

Prm = 21

§

Xnxidp = 22

§

Trunk1 = 23

§

Trunk2 = 24

§

Leaf1 = 25

§

Leaf2 = 26

§

Rdp = 27

§

Irtp = 28

§

Isotp4 = 29

§

Netblt = 30

§

Mfensp = 31

§

Meritinp = 32

§

Dccp = 33

§

Threepc = 34

§

Idpr = 35

§

Xtp = 36

§

Ddp = 37

§

Idprcmtp = 38

§

Tppp = 39

§

Il = 40

§

Ipv6 = 41

§

Sdrp = 42

§

Ipv6Route = 43

§

Ipv6Frag = 44

§

Idrp = 45

§

Rsvp = 46

§

Gre = 47

§

Dsr = 48

§

Bna = 49

§

Esp = 50

§

Ah = 51

§

Inlsp = 52

§

Swipe = 53

§

Narp = 54

§

Mobile = 55

§

Tlsp = 56

§

Skip = 57

§

Ipv6Icmp = 58

§

Ipv6Nonxt = 59

§

Ipv6Opts = 60

§

Anydistributedprotocol = 61

§

Cftp = 62

§

Anylocalnetwork = 63

§

Satexpak = 64

§

Kryptolan = 65

§

Rvd = 66

§

Ippc = 67

§

Anydistributedfilesystem = 68

§

Satmon = 69

§

Visa = 70

§

Ipcv = 71

§

Cpnx = 72

§

Cphb = 73

§

Wsn = 74

§

Pvp = 75

§

Brsatmon = 76

§

Sunnd = 77

§

Wbmon = 78

§

Wbexpak = 79

§

Isoip = 80

§

Vmtp = 81

§

Securevmtp = 82

§

Vines = 83

§

Iptm = 84

§

Nsfnetigp = 85

§

Dgp = 86

§

Tcf = 87

§

Eigrp = 88

§

Ospfigp = 89

§

Spriterpc = 90

§

Larp = 91

§

Mtp = 92

§

Ax25 = 93

§

Ipip = 94

§

Micp = 95

§

Sccsp = 96

§

Etherip = 97

§

Encap = 98

§

Anyprivateencryptionscheme = 99

§

Gmtp = 100

§

Ifmp = 101

§

Pnni = 102

§

Pim = 103

§

Aris = 104

§

Scps = 105

§

Qnx = 106

§

An = 107

§

Ipcomp = 108

§

Snp = 109

§

Compaqpeer = 110

§

Ipxinip = 111

§

Vrrp = 112

§

Pgm = 113

§

Any0Hopprotocol = 114

§

L2Tp = 115

§

Ddx = 116

§

Iatp = 117

§

Stp = 118

§

Srp = 119

§

Uti = 120

§

Smp = 121

§

Sm = 122

§

Ptp = 123

§

Isisoveripv4 = 124

§

Fire = 125

§

Crtp = 126

§

Crudp = 127

§

Sscopmce = 128

§

Iplt = 129

§

Sps = 130

§

Pipe = 131

§

Sctp = 132

§

Fc = 133

§

Rsvpe2Eignore = 134

§

Mobilityheader = 135

§

Udplite = 136

§

Mplsinip = 137

§

Manet = 138

§

Hip = 139

§

Shim6 = 140

§

Wesp = 141

§

Rohc = 142

§

Ethernet = 143

§

Aggfrag = 144

§

Unknown = 145

§

Reserved = 255

Trait Implementations§

source§

impl Clone for ProtocolTypes

source§

fn clone(&self) -> ProtocolTypes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ProtocolTypes

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<u8> for ProtocolTypes

source§

fn from(item: u8) -> Self

Converts to this type from the input type.
source§

impl Ord for ProtocolTypes

source§

fn cmp(&self, other: &ProtocolTypes) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<'nom> Parse<&'nom [u8]> for ProtocolTypes

source§

fn parse_be(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Big-Endian
source§

fn parse_le(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Little-Endian
source§

fn parse(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input, not knowing the endianness Read more
source§

impl PartialEq for ProtocolTypes

source§

fn eq(&self, other: &ProtocolTypes) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for ProtocolTypes

source§

fn partial_cmp(&self, other: &ProtocolTypes) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for ProtocolTypes

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ProtocolTypes

source§

impl Eq for ProtocolTypes

source§

impl StructuralPartialEq for ProtocolTypes

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.