pub enum ClientToHostCommands<StepT: Clone + Debug + Serialize + Deserialize + Display> {
JoinGameType(JoinGameRequest),
Steps(StepsRequest<StepT>),
DownloadGameState(DownloadGameStateRequest),
BlobStreamChannel(ReceiverToSenderFrontCommands),
ConnectType(ConnectRequest),
Ping(u16),
}
Variants§
JoinGameType(JoinGameRequest)
Steps(StepsRequest<StepT>)
DownloadGameState(DownloadGameStateRequest)
BlobStreamChannel(ReceiverToSenderFrontCommands)
ConnectType(ConnectRequest)
Ping(u16)
Trait Implementations§
source§impl<StepT: Clone + Clone + Debug + Serialize + Deserialize + Display> Clone for ClientToHostCommands<StepT>
impl<StepT: Clone + Clone + Debug + Serialize + Deserialize + Display> Clone for ClientToHostCommands<StepT>
source§fn clone(&self) -> ClientToHostCommands<StepT>
fn clone(&self) -> ClientToHostCommands<StepT>
Returns a copy 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<StepT: Debug + Clone + Debug + Serialize + Deserialize + Display> Debug for ClientToHostCommands<StepT>
impl<StepT: Debug + Clone + Debug + Serialize + Deserialize + Display> Debug for ClientToHostCommands<StepT>
source§impl<StepT: Clone + Debug + Serialize + Deserialize + Display> Deserialize for ClientToHostCommands<StepT>
impl<StepT: Clone + Debug + Serialize + Deserialize + Display> Deserialize for ClientToHostCommands<StepT>
fn deserialize(stream: &mut impl ReadOctetStream) -> Result<Self>
source§impl<StepT: Clone + Debug + Eq + PartialEq + Serialize + Deserialize + Display> Display for ClientToHostCommands<StepT>
impl<StepT: Clone + Debug + Eq + PartialEq + Serialize + Deserialize + Display> Display for ClientToHostCommands<StepT>
source§impl<StepT: Deserialize + Serialize + Debug + Display + Clone> From<&ClientToHostCommands<StepT>> for u8
impl<StepT: Deserialize + Serialize + Debug + Display + Clone> From<&ClientToHostCommands<StepT>> for u8
source§fn from(command: &ClientToHostCommands<StepT>) -> Self
fn from(command: &ClientToHostCommands<StepT>) -> Self
Converts to this type from the input type.
source§impl<StepT: Clone + Debug + Serialize + Deserialize + Display> Serialize for ClientToHostCommands<StepT>
impl<StepT: Clone + Debug + Serialize + Deserialize + Display> Serialize for ClientToHostCommands<StepT>
Auto Trait Implementations§
impl<StepT> Freeze for ClientToHostCommands<StepT>
impl<StepT> RefUnwindSafe for ClientToHostCommands<StepT>where
StepT: RefUnwindSafe,
impl<StepT> Send for ClientToHostCommands<StepT>where
StepT: Send,
impl<StepT> Sync for ClientToHostCommands<StepT>where
StepT: Sync,
impl<StepT> Unpin for ClientToHostCommands<StepT>where
StepT: Unpin,
impl<StepT> UnwindSafe for ClientToHostCommands<StepT>where
StepT: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)