pub enum PacketLineOrWantedSize<'a> {
    Line(PacketLineRef<'a>),
    Wanted(u16),
}
Expand description

The result of hex_prefix() indicating either a special packet line or the amount of wanted bytes

Variants

Line(PacketLineRef<'a>)

The special kind of packet line decoded from the hex prefix. It never contains actual data.

Wanted(u16)

The amount of bytes indicated by the hex prefix of the packet line.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.