#[repr(u8)]pub enum FieldEnum {
Show 29 variants
VarNetFlagsF = 102,
VarHopF = 106,
VarStampF = 115,
VarUBits0F = 113,
VarUBits1F = 81,
VarUBits2F = 119,
VarUBits3F = 87,
PktHashF = 104,
PktTypeF = 121,
SizeF = 111,
PubKeyF = 107,
SignatureF = 118,
GroupIDF = 103,
DomainF = 100,
CreateF = 99,
DepthF = 120,
LinksLenF = 108,
DataSizeF = 66,
SpaceNameF = 112,
RSpaceNameF = 80,
SpaceComp0F = 48,
SpaceComp1F = 49,
SpaceComp2F = 50,
SpaceComp3F = 51,
SpaceComp4F = 52,
SpaceComp5F = 53,
SpaceComp6F = 54,
SpaceComp7F = 55,
DataF = 98,
}
Expand description
An enum that provides access to the fields in a NetPkt
Variants§
VarNetFlagsF = 102
VarHopF = 106
VarStampF = 115
VarUBits0F = 113
VarUBits1F = 81
VarUBits2F = 119
VarUBits3F = 87
PktHashF = 104
PktTypeF = 121
SizeF = 111
PubKeyF = 107
SignatureF = 118
GroupIDF = 103
DomainF = 100
CreateF = 99
DepthF = 120
LinksLenF = 108
DataSizeF = 66
SpaceNameF = 112
RSpaceNameF = 80
SpaceComp0F = 48
SpaceComp1F = 49
SpaceComp2F = 50
SpaceComp3F = 51
SpaceComp4F = 52
SpaceComp5F = 53
SpaceComp6F = 54
SpaceComp7F = 55
DataF = 98
Implementations§
§impl FieldEnum
impl FieldEnum
pub fn try_to_abe(self, abl: ABList) -> Option<Vec<ABE>>
§impl FieldEnum
impl FieldEnum
pub fn fixed_size(self) -> Option<usize>
pub fn bytes(self, pkt: &dyn NetPkt, out: &mut dyn Write) -> Result<(), Error>
pub fn bytes(self, pkt: &dyn NetPkt, out: &mut dyn Write) -> Result<(), Error>
This always returns something even if the field doesn’t exists for the specific pkt
pub fn display(self, pkt: &dyn NetPkt, out: impl Write) -> Result<(), Error>
pub fn into_abe(self, pkt: &dyn NetPkt) -> String
pub fn abe(self, pkt: &dyn NetPkt, out: impl Write) -> Result<(), Error>
Trait Implementations§
impl Copy for FieldEnum
impl Eq for FieldEnum
impl StructuralEq for FieldEnum
impl StructuralPartialEq for FieldEnum
Auto Trait Implementations§
impl RefUnwindSafe for FieldEnum
impl Send for FieldEnum
impl Sync for FieldEnum
impl Unpin for FieldEnum
impl UnwindSafe for FieldEnum
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