Enum bancho_packets::PacketId
source · [−]#[repr(u8)]
pub enum PacketId {
Show 109 variants
OSU_USER_CHANGE_ACTION,
OSU_SEND_PUBLIC_MESSAGE,
OSU_USER_LOGOUT,
OSU_USER_REQUEST_STATUS_UPDATE,
OSU_PING,
BANCHO_USER_LOGIN_REPLY,
BANCHO_SEND_MESSAGE,
BANCHO_PONG,
BANCHO_HANDLE_IRC_CHANGE_USERNAME,
BANCHO_HANDLE_IRC_QUIT,
BANCHO_USER_STATS,
BANCHO_USER_LOGOUT,
BANCHO_SPECTATOR_JOINED,
BANCHO_SPECTATOR_LEFT,
BANCHO_SPECTATE_FRAMES,
OSU_SPECTATE_START,
OSU_SPECTATE_STOP,
OSU_SPECTATE_FRAMES,
BANCHO_VERSION_UPDATE,
OSU_ERROR_REPORT,
OSU_SPECTATE_CANT,
BANCHO_SPECTATOR_CANT_SPECTATE,
BANCHO_GET_ATTENTION,
BANCHO_NOTIFICATION,
OSU_SEND_PRIVATE_MESSAGE,
BANCHO_UPDATE_MATCH,
BANCHO_NEW_MATCH,
BANCHO_DISBAND_MATCH,
OSU_USER_PART_LOBBY,
OSU_USER_JOIN_LOBBY,
OSU_USER_CREATE_MATCH,
OSU_USER_JOIN_MATCH,
OSU_USER_PART_MATCH,
BANCHO_TOGGLE_BLOCK_NON_FRIEND_DMS,
BANCHO_MATCH_JOIN_SUCCESS,
BANCHO_MATCH_JOIN_FAIL,
OSU_MATCH_CHANGE_SLOT,
OSU_USER_MATCH_READY,
OSU_MATCH_LOCK,
OSU_MATCH_CHANGE_SETTINGS,
BANCHO_FELLOW_SPECTATOR_JOINED,
BANCHO_FELLOW_SPECTATOR_LEFT,
OSU_MATCH_START,
BANCHO_ALL_PLAYERS_LOADED,
BANCHO_MATCH_START,
OSU_MATCH_SCORE_UPDATE,
BANCHO_MATCH_SCORE_UPDATE,
OSU_MATCH_COMPLETE,
BANCHO_MATCH_TRANSFER_HOST,
OSU_MATCH_CHANGE_MODS,
OSU_MATCH_LOAD_COMPLETE,
BANCHO_MATCH_ALL_PLAYERS_LOADED,
OSU_MATCH_NO_BEATMAP,
OSU_MATCH_NOT_READY,
OSU_MATCH_FAILED,
BANCHO_MATCH_PLAYER_FAILED,
BANCHO_MATCH_COMPLETE,
OSU_MATCH_HAS_BEATMAP,
OSU_MATCH_SKIP_REQUEST,
BANCHO_MATCH_SKIP,
BANCHO_UNAUTHORIZED,
OSU_USER_CHANNEL_JOIN,
BANCHO_CHANNEL_JOIN_SUCCESS,
BANCHO_CHANNEL_INFO,
BANCHO_CHANNEL_KICK,
BANCHO_CHANNEL_AUTO_JOIN,
OSU_BEATMAP_INFO_REQUEST,
BANCHO_BEATMAP_INFO_REPLY,
OSU_MATCH_TRANSFER_HOST,
BANCHO_PRIVILEGES,
BANCHO_FRIENDS_LIST,
OSU_USER_FRIEND_ADD,
OSU_USER_FRIEND_REMOVE,
BANCHO_PROTOCOL_VERSION,
BANCHO_MAIN_MENU_ICON,
OSU_MATCH_CHANGE_TEAM,
OSU_USER_CHANNEL_PART,
OSU_USER_RECEIVE_UPDATES,
BANCHO_MONITOR,
BANCHO_MATCH_PLAYER_SKIPPED,
OSU_USER_SET_AWAY_MESSAGE,
BANCHO_USER_PRESENCE,
OSU_IRC_ONLY,
OSU_USER_STATS_REQUEST,
BANCHO_RESTART,
OSU_MATCH_INVITE,
BANCHO_MATCH_INVITE,
BANCHO_CHANNEL_INFO_END,
OSU_MATCH_CHANGE_PASSWORD,
BANCHO_MATCH_CHANGE_PASSWORD,
BANCHO_SILENCE_END,
OSU_TOURNAMENT_MATCH_INFO_REQUEST,
BANCHO_USER_SILENCED,
BANCHO_USER_PRESENCE_SINGLE,
BANCHO_USER_PRESENCE_BUNDLE,
OSU_USER_PRESENCE_REQUEST,
OSU_USER_PRESENCE_REQUEST_ALL,
OSU_USER_TOGGLE_BLOCK_NON_FRIEND_DMS,
BANCHO_USER_DM_BLOCKED,
BANCHO_TARGET_IS_SILENCED,
BANCHO_VERSION_UPDATE_FORCED,
BANCHO_SWITCH_SERVER,
BANCHO_ACCOUNT_RESTRICTED,
BANCHO_RTX,
BANCHO_MATCH_ABORT,
BANCHO_SWITCH_TOURNAMENT_SERVER,
OSU_TOURNAMENT_JOIN_MATCH_CHANNEL,
OSU_TOURNAMENT_LEAVE_MATCH_CHANNEL,
OSU_UNKNOWN_PACKET,
}Variants
OSU_USER_CHANGE_ACTION
Bancho packet ids
OSU_SEND_PUBLIC_MESSAGE
OSU_USER_LOGOUT
OSU_USER_REQUEST_STATUS_UPDATE
OSU_PING
BANCHO_USER_LOGIN_REPLY
BANCHO_SEND_MESSAGE
BANCHO_PONG
BANCHO_HANDLE_IRC_CHANGE_USERNAME
BANCHO_HANDLE_IRC_QUIT
BANCHO_USER_STATS
BANCHO_USER_LOGOUT
BANCHO_SPECTATOR_JOINED
BANCHO_SPECTATOR_LEFT
BANCHO_SPECTATE_FRAMES
OSU_SPECTATE_START
OSU_SPECTATE_STOP
OSU_SPECTATE_FRAMES
BANCHO_VERSION_UPDATE
OSU_ERROR_REPORT
OSU_SPECTATE_CANT
BANCHO_SPECTATOR_CANT_SPECTATE
BANCHO_GET_ATTENTION
BANCHO_NOTIFICATION
OSU_SEND_PRIVATE_MESSAGE
BANCHO_UPDATE_MATCH
BANCHO_NEW_MATCH
BANCHO_DISBAND_MATCH
OSU_USER_PART_LOBBY
OSU_USER_JOIN_LOBBY
OSU_USER_CREATE_MATCH
OSU_USER_JOIN_MATCH
OSU_USER_PART_MATCH
BANCHO_TOGGLE_BLOCK_NON_FRIEND_DMS
BANCHO_MATCH_JOIN_SUCCESS
BANCHO_MATCH_JOIN_FAIL
OSU_MATCH_CHANGE_SLOT
OSU_USER_MATCH_READY
OSU_MATCH_LOCK
OSU_MATCH_CHANGE_SETTINGS
BANCHO_FELLOW_SPECTATOR_JOINED
BANCHO_FELLOW_SPECTATOR_LEFT
OSU_MATCH_START
BANCHO_ALL_PLAYERS_LOADED
BANCHO_MATCH_START
OSU_MATCH_SCORE_UPDATE
BANCHO_MATCH_SCORE_UPDATE
OSU_MATCH_COMPLETE
BANCHO_MATCH_TRANSFER_HOST
OSU_MATCH_CHANGE_MODS
OSU_MATCH_LOAD_COMPLETE
BANCHO_MATCH_ALL_PLAYERS_LOADED
OSU_MATCH_NO_BEATMAP
OSU_MATCH_NOT_READY
OSU_MATCH_FAILED
BANCHO_MATCH_PLAYER_FAILED
BANCHO_MATCH_COMPLETE
OSU_MATCH_HAS_BEATMAP
OSU_MATCH_SKIP_REQUEST
BANCHO_MATCH_SKIP
BANCHO_UNAUTHORIZED
OSU_USER_CHANNEL_JOIN
BANCHO_CHANNEL_JOIN_SUCCESS
BANCHO_CHANNEL_INFO
BANCHO_CHANNEL_KICK
BANCHO_CHANNEL_AUTO_JOIN
OSU_BEATMAP_INFO_REQUEST
BANCHO_BEATMAP_INFO_REPLY
OSU_MATCH_TRANSFER_HOST
BANCHO_PRIVILEGES
BANCHO_FRIENDS_LIST
OSU_USER_FRIEND_ADD
OSU_USER_FRIEND_REMOVE
BANCHO_PROTOCOL_VERSION
BANCHO_MAIN_MENU_ICON
OSU_MATCH_CHANGE_TEAM
OSU_USER_CHANNEL_PART
OSU_USER_RECEIVE_UPDATES
BANCHO_MONITOR
BANCHO_MATCH_PLAYER_SKIPPED
OSU_USER_SET_AWAY_MESSAGE
BANCHO_USER_PRESENCE
OSU_IRC_ONLY
OSU_USER_STATS_REQUEST
BANCHO_RESTART
OSU_MATCH_INVITE
BANCHO_MATCH_INVITE
BANCHO_CHANNEL_INFO_END
OSU_MATCH_CHANGE_PASSWORD
BANCHO_MATCH_CHANGE_PASSWORD
BANCHO_SILENCE_END
OSU_TOURNAMENT_MATCH_INFO_REQUEST
BANCHO_USER_SILENCED
BANCHO_USER_PRESENCE_SINGLE
BANCHO_USER_PRESENCE_BUNDLE
OSU_USER_PRESENCE_REQUEST
OSU_USER_PRESENCE_REQUEST_ALL
OSU_USER_TOGGLE_BLOCK_NON_FRIEND_DMS
BANCHO_USER_DM_BLOCKED
BANCHO_TARGET_IS_SILENCED
BANCHO_VERSION_UPDATE_FORCED
BANCHO_SWITCH_SERVER
BANCHO_ACCOUNT_RESTRICTED
BANCHO_RTX
BANCHO_MATCH_ABORT
BANCHO_SWITCH_TOURNAMENT_SERVER
OSU_TOURNAMENT_JOIN_MATCH_CHANNEL
OSU_TOURNAMENT_LEAVE_MATCH_CHANNEL
OSU_UNKNOWN_PACKET
Trait Implementations
sourceimpl FromPrimitive for PacketId
impl FromPrimitive for PacketId
sourcefn from_u64(val: u64) -> Option<Self>
fn from_u64(val: u64) -> Option<Self>
Converts an u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i64(val: i64) -> Option<Self>
fn from_i64(val: i64) -> Option<Self>
Converts an i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
sourceimpl ToPrimitive for PacketId
impl ToPrimitive for PacketId
sourcefn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
Converts the value of self to a u64. If the value cannot be
represented by a u64, then None is returned. Read more
sourcefn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
Converts the value of self to an i64. If the value cannot be
represented by an i64, then None is returned. Read more
sourcefn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
Converts the value of self to an isize. If the value cannot be
represented by an isize, then None is returned. Read more
sourcefn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
Converts the value of self to an i8. If the value cannot be
represented by an i8, then None is returned. Read more
sourcefn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
Converts the value of self to an i16. If the value cannot be
represented by an i16, then None is returned. Read more
sourcefn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
Converts the value of self to an i32. If the value cannot be
represented by an i32, then None is returned. Read more
sourcefn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
Converts the value of self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read more
sourcefn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
Converts the value of self to a usize. If the value cannot be
represented by a usize, then None is returned. Read more
sourcefn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
Converts the value of self to a u8. If the value cannot be
represented by a u8, then None is returned. Read more
sourcefn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
Converts the value of self to a u16. If the value cannot be
represented by a u16, then None is returned. Read more
sourcefn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
Converts the value of self to a u32. If the value cannot be
represented by a u32, then None is returned. Read more
sourcefn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
Converts the value of self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read more
impl Eq for PacketId
impl StructuralEq for PacketId
impl StructuralPartialEq for PacketId
Auto Trait Implementations
impl RefUnwindSafe for PacketId
impl Send for PacketId
impl Sync for PacketId
impl Unpin for PacketId
impl UnwindSafe for PacketId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more