#[repr(u8)]pub enum MessageType {
Show 95 variants
Unknown(u8),
Retry = 1,
Hint = 2,
Waiting = 3,
Start = 4,
Win = 5,
UpdateData = 6,
UpdateCard = 7,
RequestDeck = 8,
SelectBattleCommand = 10,
SelectIdleCommand = 11,
SelectEffectYesNo = 12,
SelectYesNo = 13,
SelectOption = 14,
SelectCard = 15,
SelectChain = 16,
SelectPlace = 18,
SelectPosition = 19,
SelectTribute = 20,
SortChain = 21,
SelectCounter = 22,
SelectSum = 23,
SelectDisableField = 24,
SortCard = 25,
SelectUnselectCard = 26,
ConfirmDecktop = 30,
ConfirmCards = 31,
ShuffleDeck = 32,
ShuffleHand = 33,
RefreshDeck = 34,
SwapGraveDeck = 35,
ShuffleSetCard = 36,
ReverseDeck = 37,
DeckTop = 38,
ShuffleExtra = 39,
NewTurn = 40,
NewPhase = 41,
ConfirmExtraTop = 42,
Move = 50,
PositionChange = 53,
Set = 54,
Swap = 55,
FieldDisabled = 56,
Summoning = 60,
Summoned = 61,
SpecialSummoning = 62,
SpecialSummoned = 63,
FlipSummoning = 64,
FlipSummoned = 65,
Chaining = 70,
Chained = 71,
ChainSolving = 72,
ChainSolved = 73,
ChainEnd = 74,
ChainNegated = 75,
ChainDisabled = 76,
CardSelected = 80,
RandomSelected = 81,
BecomeTarget = 83,
Draw = 90,
Damage = 91,
Recover = 92,
Equip = 93,
LPUpdate = 94,
Unequip = 95,
CardTarget = 96,
CancelTarget = 97,
PayLPCost = 100,
AddCounter = 101,
RemoveCounter = 102,
Attack = 110,
Battle = 111,
AttackDisabled = 112,
DamageStepStart = 113,
DamageStepEnd = 114,
MissedEffect = 120,
BeChainTarget = 121,
CreateRelation = 122,
ReleaseRelation = 123,
TossCoin = 130,
TossDice = 131,
RockPaperScissors = 132,
HandResult = 133,
AnnounceRace = 140,
AnnounceAttribute = 141,
AnnounceCard = 142,
AnnounceNumber = 143,
CardHint = 160,
TagSwap = 161,
ReloadField = 162,
AIName = 163,
ShowHint = 164,
PlayerHint = 165,
MatchKill = 170,
CustomMsg = 180,
}Variants§
Unknown(u8)
Retry = 1
Hint = 2
Waiting = 3
Start = 4
Win = 5
UpdateData = 6
UpdateCard = 7
RequestDeck = 8
SelectBattleCommand = 10
SelectIdleCommand = 11
SelectEffectYesNo = 12
SelectYesNo = 13
SelectOption = 14
SelectCard = 15
SelectChain = 16
SelectPlace = 18
SelectPosition = 19
SelectTribute = 20
SortChain = 21
SelectCounter = 22
SelectSum = 23
SelectDisableField = 24
SortCard = 25
SelectUnselectCard = 26
ConfirmDecktop = 30
ConfirmCards = 31
ShuffleDeck = 32
ShuffleHand = 33
RefreshDeck = 34
SwapGraveDeck = 35
ShuffleSetCard = 36
ReverseDeck = 37
DeckTop = 38
ShuffleExtra = 39
NewTurn = 40
NewPhase = 41
ConfirmExtraTop = 42
Move = 50
PositionChange = 53
Set = 54
Swap = 55
FieldDisabled = 56
Summoning = 60
Summoned = 61
SpecialSummoning = 62
SpecialSummoned = 63
FlipSummoning = 64
FlipSummoned = 65
Chaining = 70
Chained = 71
ChainSolving = 72
ChainSolved = 73
ChainEnd = 74
ChainNegated = 75
ChainDisabled = 76
CardSelected = 80
RandomSelected = 81
BecomeTarget = 83
Draw = 90
Damage = 91
Recover = 92
Equip = 93
LPUpdate = 94
Unequip = 95
CardTarget = 96
CancelTarget = 97
PayLPCost = 100
AddCounter = 101
RemoveCounter = 102
Attack = 110
Battle = 111
AttackDisabled = 112
DamageStepStart = 113
DamageStepEnd = 114
MissedEffect = 120
BeChainTarget = 121
CreateRelation = 122
ReleaseRelation = 123
TossCoin = 130
TossDice = 131
RockPaperScissors = 132
HandResult = 133
AnnounceRace = 140
AnnounceAttribute = 141
AnnounceCard = 142
AnnounceNumber = 143
CardHint = 160
TagSwap = 161
ReloadField = 162
AIName = 163
ShowHint = 164
PlayerHint = 165
MatchKill = 170
CustomMsg = 180
Trait Implementations§
Source§impl BinRead for MessageType
impl BinRead for MessageType
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<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§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_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. 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 MessageType
impl BinWrite for MessageType
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<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer using default arguments. Read moreSource§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§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer using the given arguments. Read moreSource§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
impl Eq for MessageType
Source§impl<Message> From<&Complex<Message>> for MessageType
impl<Message> From<&Complex<Message>> for MessageType
Source§impl From<&Message> for MessageType
impl From<&Message> for MessageType
Source§impl From<&MessageType> for u8
impl From<&MessageType> for u8
Source§fn from(value: &MessageType) -> Self
fn from(value: &MessageType) -> Self
Converts to this type from the input type.
Source§impl From<MessageType> for u8
impl From<MessageType> for u8
Source§fn from(value: MessageType) -> Self
fn from(value: MessageType) -> Self
Converts to this type from the input type.
Source§impl From<MessageType> for MessageType
impl From<MessageType> for MessageType
Source§fn from(value: MessageType) -> Self
fn from(value: MessageType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for MessageType
impl From<u8> for MessageType
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl Ord for MessageType
impl Ord for MessageType
Source§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl PartialOrd for MessageType
impl PartialOrd for MessageType
Source§impl ReadEndian for MessageType
impl ReadEndian for MessageType
Source§const ENDIAN: EndianKind = <u8 as binrw::meta::ReadEndian>::ENDIAN
const ENDIAN: EndianKind = <u8 as binrw::meta::ReadEndian>::ENDIAN
The endianness of the type.
impl StructuralPartialEq for MessageType
Source§impl WriteEndian for MessageType
impl WriteEndian for MessageType
Source§const ENDIAN: EndianKind = <u8 as binrw::meta::WriteEndian>::ENDIAN
const ENDIAN: EndianKind = <u8 as binrw::meta::WriteEndian>::ENDIAN
The endianness of the type.
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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