Enum redbpf_probes::net::Transport[][src]

pub enum Transport {
    TCP(*const tcphdr),
    UDP(*const udphdr),
}
Expand description

The packet transport header.

Currently only TCP and UDP transports are supported.

Variants

TCP(*const tcphdr)

Tuple Fields

UDP(*const udphdr)

Tuple Fields

Implementations

Returns the source port.

Returns the destination port.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.