pub struct UserStats<'a> {}Expand description
#11: BANCHO_USER_STATS
Fields§
§user_id: i32§online_status: u8§description: CowStr<'a>§beatmap_md5: CowStr<'a>§mods: u32§mode: u8§beatmap_id: i32§ranked_score: i64§accuracy: f32§playcount: i32§total_score: i64§rank: i32§pp: i16Implementations§
Source§impl<'a> UserStats<'a>
impl<'a> UserStats<'a>
pub fn new( user_id: i32, online_status: u8, description: CowStr<'a>, beatmap_md5: CowStr<'a>, mods: u32, mode: u8, beatmap_id: i32, ranked_score: i64, accuracy: f32, playcount: i32, total_score: i64, rank: i32, pp: i16, ) -> Self
pub fn pack( user_id: i32, online_status: u8, description: CowStr<'a>, beatmap_md5: CowStr<'a>, mods: u32, mode: u8, beatmap_id: i32, ranked_score: i64, accuracy: f32, playcount: i32, total_score: i64, rank: i32, pp: i16, ) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl<'a> BanchoPacket for UserStats<'a>
impl<'a> BanchoPacket for UserStats<'a>
Source§impl<'a> BanchoPacketLength for UserStats<'a>
impl<'a> BanchoPacketLength for UserStats<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserStats<'a>
impl<'a> RefUnwindSafe for UserStats<'a>
impl<'a> Send for UserStats<'a>
impl<'a> Sync for UserStats<'a>
impl<'a> Unpin for UserStats<'a>
impl<'a> UnsafeUnpin for UserStats<'a>
impl<'a> UnwindSafe for UserStats<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more