pub enum MutPacketData<'p> {
    Owned(Vec<u8, Global>),
    Borrowed(&'p mut [u8]),
}
Expand description

Mutable packet data.

Variants

Owned(Vec<u8, Global>)

Tuple Fields

0: Vec<u8, Global>

Owned mutable packet data.

Borrowed(&'p mut [u8])

Tuple Fields

Borrowed mutable packet data.

Implementations

Get packet data as a slice.

Get packet data as a mutable slice.

Get an immutable version of packet data.

Get a length of data in the packet.

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.