pub enum LayerStackEntry {
Show 23 variants
Ethernet(EthernetBuilder),
Arp(ArpBuilder),
Ipv4(Ipv4Builder),
Ipv6(Ipv6Builder),
Tcp(TcpBuilder),
Udp(UdpBuilder),
Icmp(IcmpBuilder),
Icmpv6(Icmpv6Builder),
Ssh(SshBuilder),
Tls(TlsRecordBuilder),
Dns(DnsBuilder),
Http2(Http2FrameBuilder),
L2tp(L2tpBuilder),
Mqtt(MqttBuilder),
MqttSn(MqttSnBuilder),
Modbus(ModbusBuilder),
ZWave(ZWaveBuilder),
Ftp(FtpBuilder),
Tftp(TftpBuilder),
Smtp(SmtpBuilder),
Pop3(Pop3Builder),
Imap(ImapBuilder),
Raw(Vec<u8>),
}Expand description
An entry in a layer stack, representing a protocol layer builder.
Variants§
Ethernet(EthernetBuilder)
Ethernet II layer
Arp(ArpBuilder)
ARP layer
Ipv4(Ipv4Builder)
IPv4 layer
Ipv6(Ipv6Builder)
IPv6 layer
Tcp(TcpBuilder)
TCP layer
Udp(UdpBuilder)
UDP layer
Icmp(IcmpBuilder)
ICMP layer
Icmpv6(Icmpv6Builder)
ICMPv6 layer
Ssh(SshBuilder)
SSH layer
Tls(TlsRecordBuilder)
TLS record layer
Dns(DnsBuilder)
DNS layer
Http2(Http2FrameBuilder)
HTTP/2 frame layer
L2tp(L2tpBuilder)
L2TP layer
Mqtt(MqttBuilder)
MQTT layer
MqttSn(MqttSnBuilder)
MQTT-SN layer
Modbus(ModbusBuilder)
Modbus layer
ZWave(ZWaveBuilder)
Z-Wave layer
Ftp(FtpBuilder)
FTP layer
Tftp(TftpBuilder)
TFTP layer
Smtp(SmtpBuilder)
SMTP layer
Pop3(Pop3Builder)
POP3 layer
Imap(ImapBuilder)
IMAP layer
Raw(Vec<u8>)
Raw bytes payload
Implementations§
Source§impl LayerStackEntry
impl LayerStackEntry
Sourcepub fn build_bytes(&self) -> Vec<u8> ⓘ
pub fn build_bytes(&self) -> Vec<u8> ⓘ
Build this layer into bytes, without applying bindings.
Sourcepub fn header_size(&self) -> usize
pub fn header_size(&self) -> usize
Get the header size for this layer.
Sourcepub fn min_header_size(&self) -> usize
pub fn min_header_size(&self) -> usize
Get minimum header size for this layer type.
Trait Implementations§
Source§impl Clone for LayerStackEntry
impl Clone for LayerStackEntry
Source§fn clone(&self) -> LayerStackEntry
fn clone(&self) -> LayerStackEntry
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 LayerStackEntry
impl Debug for LayerStackEntry
Source§impl Div<LayerStackEntry> for LayerStack
impl Div<LayerStackEntry> for LayerStack
Source§type Output = LayerStack
type Output = LayerStack
The resulting type after applying the
/ operator.Source§impl Div for LayerStackEntry
impl Div for LayerStackEntry
Source§type Output = LayerStack
type Output = LayerStack
The resulting type after applying the
/ operator.Auto Trait Implementations§
impl Freeze for LayerStackEntry
impl RefUnwindSafe for LayerStackEntry
impl Send for LayerStackEntry
impl Sync for LayerStackEntry
impl Unpin for LayerStackEntry
impl UnsafeUnpin for LayerStackEntry
impl UnwindSafe for LayerStackEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more