pub struct PacketReader {
    pub buf: Vec<u8>,
    pub index: usize,
    pub payload_length: usize,
    pub finish: bool,
    pub payload_count: u16,
    pub packet_count: u16,
}

Fields

buf: Vec<u8>index: usizepayload_length: usizefinish: boolpayload_count: u16packet_count: u16

Implementations

Read the osu!client packet: (packet id, payload)

Read packet header: (type, length)

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.