Struct redbpf_probes::net::Data[][src]

pub struct Data<T: NetworkBuffer> { /* fields omitted */ }
Expand description

Data type returned by calling NetworkBuffer::data()

Implementations

Returns the offset from the first byte of the packet.

Returns the length of the data.

This is equivalent to the length of the packet minus the length of the headers.

Returns a slice of len bytes from the data.

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.