Skip to main content

MessageType

Enum MessageType 

Source
#[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

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of read_args() and read_options(). Read more
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>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments. Read more
Source§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
Source§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
Source§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl BinWrite for MessageType

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of write_args() and write_options(). Read more
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<()>

Write Self to the writer using the given Endian and arguments. Read more
Source§

fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian, Self::Args<'a>: for<'a> Required,

Write Self to the writer using default arguments. Read more
Source§

fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming big-endian byte order. Read more
Source§

fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming little-endian byte order. Read more
Source§

fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian,

Write Self to the writer using the given arguments. Read more
Source§

fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming big-endian byte order, using the given arguments. Read more
Source§

fn write_le_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming little-endian byte order, using the given arguments. Read more
Source§

impl Clone for MessageType

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for MessageType

Source§

impl Debug for MessageType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for MessageType

Source§

impl<Message> From<&Complex<Message>> for MessageType

Source§

fn from(value: &Complex<Message>) -> Self

Converts to this type from the input type.
Source§

impl From<&Message> for MessageType

Source§

fn from(value: &Message) -> Self

Converts to this type from the input type.
Source§

impl From<&MessageType> for u8

Source§

fn from(value: &MessageType) -> Self

Converts to this type from the input type.
Source§

impl From<MessageType> for u8

Source§

fn from(value: MessageType) -> Self

Converts to this type from the input type.
Source§

impl From<MessageType> for MessageType

Source§

fn from(value: MessageType) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for MessageType

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl Hash for MessageType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for MessageType

Source§

fn cmp(&self, other: &MessageType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for MessageType

Source§

fn eq(&self, other: &MessageType) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for MessageType

Source§

fn partial_cmp(&self, other: &MessageType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl ReadEndian for MessageType

Source§

const ENDIAN: EndianKind = <u8 as binrw::meta::ReadEndian>::ENDIAN

The endianness of the type.
Source§

impl StructuralPartialEq for MessageType

Source§

impl WriteEndian for MessageType

Source§

const ENDIAN: EndianKind = <u8 as binrw::meta::WriteEndian>::ENDIAN

The endianness of the type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.