pub struct ScoreFrame {
Show 15 fields pub timestamp: i32, pub id: u8, pub n300: u16, pub n100: u16, pub n50: u16, pub geki: u16, pub katu: u16, pub miss: u16, pub score: i32, pub combo: u16, pub max_combo: u16, pub perfect: bool, pub hp: u8, pub tag_byte: u8, pub score_v2: bool,
}
Expand description

The ScoreFrame uploaded by the bancho client during multiplayer games.

Fields§

§timestamp: i32§id: u8§n300: u16§n100: u16§n50: u16§geki: u16§katu: u16§miss: u16§score: i32§combo: u16§max_combo: u16§perfect: bool§hp: u8§tag_byte: u8§score_v2: bool

Trait Implementations§

source§

impl BanchoPacketLength for ScoreFrame

source§

fn packet_len(&self) -> usize

Calculate the byte length of self after being converted into a bancho packet, which is used to allocate Vec space in advance to improve performance. Read more
source§

impl BanchoPacketRead<ScoreFrame> for ScoreFrame

source§

fn read(reader: &mut PayloadReader<'_>) -> Option<ScoreFrame>

source§

impl BanchoPacketWrite for ScoreFrame

source§

fn write_buf(self, buf: &mut Vec<u8>)

Convert self into a bancho packet and write it into buf Vec<u8>.
source§

fn into_packet(self) -> Vec<u8> where Self: Sized,

Convert self into a bancho packet Vec<u8>.
source§

impl Clone for ScoreFrame

source§

fn clone(&self) -> ScoreFrame

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ScoreFrame

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ScoreFrame

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ScoreFrame

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,