pub struct LoginReply {
pub login_result: LoginResult,
}Expand description
#5: BANCHO_USER_LOGIN_REPLY
Fields§
§login_result: LoginResultImplementations§
Source§impl LoginReply
impl LoginReply
pub fn new(login_result: LoginResult) -> Self
pub fn pack(login_result: LoginResult) -> Vec<u8> ⓘ
Source§impl LoginReply
impl LoginReply
pub fn success(user_id: i32) -> Self
pub fn failed_invalid_credentials() -> Self
pub fn failed_outdated_client() -> Self
pub fn failed_user_banned() -> Self
pub fn failed_multiaccount_detected() -> Self
pub fn failed_server_error() -> Self
pub fn failed_cutting_edge_multiplayer() -> Self
pub fn failed_account_password_rest() -> Self
pub fn failed_verification_required() -> Self
Trait Implementations§
Source§impl BanchoPacket for LoginReply
impl BanchoPacket for LoginReply
Source§impl BanchoPacketLength for LoginReply
impl BanchoPacketLength for LoginReply
Source§impl Clone for LoginReply
impl Clone for LoginReply
Source§fn clone(&self) -> LoginReply
fn clone(&self) -> LoginReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoginReply
impl Debug for LoginReply
Source§impl Default for LoginReply
impl Default for LoginReply
Source§fn default() -> LoginReply
fn default() -> LoginReply
Returns the “default value” for a type. Read more
Source§impl From<LoginResult> for LoginReply
impl From<LoginResult> for LoginReply
Source§fn from(login_result: LoginResult) -> Self
fn from(login_result: LoginResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoginReply
impl RefUnwindSafe for LoginReply
impl Send for LoginReply
impl Sync for LoginReply
impl Unpin for LoginReply
impl UnsafeUnpin for LoginReply
impl UnwindSafe for LoginReply
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