pub struct UserCreateMatch<'a> {
pub id: i16,
pub in_progress: i8,
pub powerplay: i8,
pub mods: i32,
pub name: CowStr<'a>,
pub passwd: CowStr<'a>,
pub map_name: CowStr<'a>,
pub map_id: i32,
pub map_md5: CowStr<'a>,
pub slot_statuses: &'a [i8],
pub slot_teams: &'a [i8],
}Expand description
#31: OSU_USER_CREATE_MATCH
Fields§
§id: i16§in_progress: i8§powerplay: i8§mods: i32§name: CowStr<'a>§passwd: CowStr<'a>§map_name: CowStr<'a>§map_id: i32§map_md5: CowStr<'a>§slot_statuses: &'a [i8]§slot_teams: &'a [i8]Implementations§
Source§impl<'a> UserCreateMatch<'a>
impl<'a> UserCreateMatch<'a>
pub fn new( id: i16, in_progress: i8, powerplay: i8, mods: i32, name: CowStr<'a>, passwd: CowStr<'a>, map_name: CowStr<'a>, map_id: i32, map_md5: CowStr<'a>, slot_statuses: &'a [i8], slot_teams: &'a [i8], ) -> Self
pub fn pack( id: i16, in_progress: i8, powerplay: i8, mods: i32, name: CowStr<'a>, passwd: CowStr<'a>, map_name: CowStr<'a>, map_id: i32, map_md5: CowStr<'a>, slot_statuses: &'a [i8], slot_teams: &'a [i8], ) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl<'a> BanchoPacket for UserCreateMatch<'a>
impl<'a> BanchoPacket for UserCreateMatch<'a>
Source§impl<'a> BanchoPacketLength for UserCreateMatch<'a>
impl<'a> BanchoPacketLength for UserCreateMatch<'a>
Source§impl<'a> Clone for UserCreateMatch<'a>
impl<'a> Clone for UserCreateMatch<'a>
Source§fn clone(&self) -> UserCreateMatch<'a>
fn clone(&self) -> UserCreateMatch<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for UserCreateMatch<'a>
impl<'a> Debug for UserCreateMatch<'a>
Source§impl<'a> Default for UserCreateMatch<'a>
impl<'a> Default for UserCreateMatch<'a>
Source§fn default() -> UserCreateMatch<'a>
fn default() -> UserCreateMatch<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for UserCreateMatch<'a>
impl<'a> RefUnwindSafe for UserCreateMatch<'a>
impl<'a> Send for UserCreateMatch<'a>
impl<'a> Sync for UserCreateMatch<'a>
impl<'a> Unpin for UserCreateMatch<'a>
impl<'a> UnwindSafe for UserCreateMatch<'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