pub enum ServerReceiveCommand {
LoginRequestType(LoginRequest),
PingCommandType(PingCommand),
}Variants§
LoginRequestType(LoginRequest)
PingCommandType(PingCommand)
Implementations§
Source§impl ServerReceiveCommand
impl ServerReceiveCommand
pub fn to_octets(&self) -> Result<Vec<u8>, String>
pub fn from_octets(input: &[u8]) -> Result<ServerReceiveCommand, String>
pub fn from_cursor( reader: Cursor<&[u8]>, ) -> Result<ServerReceiveCommand, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerReceiveCommand
impl RefUnwindSafe for ServerReceiveCommand
impl Send for ServerReceiveCommand
impl Sync for ServerReceiveCommand
impl Unpin for ServerReceiveCommand
impl UnwindSafe for ServerReceiveCommand
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