#[repr(u16)]pub enum IdleCommand {
Summon = 0,
SpecialSummon = 1,
Reposition = 2,
SetMonster = 3,
SetSpellTrap = 4,
Activate = 5,
EnterBattlePhase = 6,
EnterEndPhase = 7,
ShuffleDeck = 8,
}Expand description
The idle-phase command a player picks, answered to a SelectIdleCommand message.
Variants§
Summon = 0
SpecialSummon = 1
Reposition = 2
SetMonster = 3
SetSpellTrap = 4
Activate = 5
EnterBattlePhase = 6
EnterEndPhase = 7
ShuffleDeck = 8
Trait Implementations§
Source§impl BinRead for IdleCommand
impl BinRead for IdleCommand
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for IdleCommand
impl BinWrite for IdleCommand
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§impl Clone for IdleCommand
impl Clone for IdleCommand
Source§fn clone(&self) -> IdleCommand
fn clone(&self) -> IdleCommand
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 moreimpl Copy for IdleCommand
Source§impl Debug for IdleCommand
impl Debug for IdleCommand
impl Eq for IdleCommand
Source§impl PartialEq for IdleCommand
impl PartialEq for IdleCommand
impl StructuralPartialEq for IdleCommand
Auto Trait Implementations§
impl Freeze for IdleCommand
impl RefUnwindSafe for IdleCommand
impl Send for IdleCommand
impl Sync for IdleCommand
impl Unpin for IdleCommand
impl UnsafeUnpin for IdleCommand
impl UnwindSafe for IdleCommand
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