pub enum Message {
Show 23 variants
GameMessage(GameMessage),
ErrorMessage(ErrorMessage),
SelectHand(SelectHand),
SelectTp(SelectTp),
HandResult(HandResult),
TpResult(TpResult),
ChangeSide(ChangeSide),
WaitingSide(WaitingSide),
DeckCount(DeckCount),
CreateGame(CreateGame),
JoinGame(JoinGame),
TypeChange(TypeChange),
LeaveGame(LeaveGame),
DuelStart(DuelStart),
DuelEnd(DuelEnd),
Replay(Replay),
TimeLimit(TimeLimit),
Chat(Chat),
HsPlayerEnter(HsPlayerEnter),
HsPlayerChange(HsPlayerChange),
HsWatchChange(HsWatchChange),
TeammateSurrender(TeammateSurrender),
FieldFinish(FieldFinish),
}Variants§
GameMessage(GameMessage)
ErrorMessage(ErrorMessage)
SelectHand(SelectHand)
SelectTp(SelectTp)
HandResult(HandResult)
TpResult(TpResult)
ChangeSide(ChangeSide)
WaitingSide(WaitingSide)
DeckCount(DeckCount)
CreateGame(CreateGame)
JoinGame(JoinGame)
TypeChange(TypeChange)
LeaveGame(LeaveGame)
DuelStart(DuelStart)
DuelEnd(DuelEnd)
Replay(Replay)
TimeLimit(TimeLimit)
Chat(Chat)
HsPlayerEnter(HsPlayerEnter)
HsPlayerChange(HsPlayerChange)
HsWatchChange(HsWatchChange)
TeammateSurrender(TeammateSurrender)
FieldFinish(FieldFinish)
Trait Implementations§
Source§impl BinRead for Message
impl BinRead for Message
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 Message
impl BinWrite for Message
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 From<&Message> for MessageType
impl From<&Message> for MessageType
Source§impl From<AddCounter> for Message
impl From<AddCounter> for Message
Source§fn from(value: AddCounter) -> Self
fn from(value: AddCounter) -> Self
Converts to this type from the input type.
Source§impl From<AnnounceAttribute> for Message
impl From<AnnounceAttribute> for Message
Source§fn from(value: AnnounceAttribute) -> Self
fn from(value: AnnounceAttribute) -> Self
Converts to this type from the input type.
Source§impl From<AnnounceCard> for Message
impl From<AnnounceCard> for Message
Source§fn from(value: AnnounceCard) -> Self
fn from(value: AnnounceCard) -> Self
Converts to this type from the input type.
Source§impl From<AnnounceNumber> for Message
impl From<AnnounceNumber> for Message
Source§fn from(value: AnnounceNumber) -> Self
fn from(value: AnnounceNumber) -> Self
Converts to this type from the input type.
Source§impl From<AnnounceRace> for Message
impl From<AnnounceRace> for Message
Source§fn from(value: AnnounceRace) -> Self
fn from(value: AnnounceRace) -> Self
Converts to this type from the input type.
Source§impl From<AttackDisabled> for Message
impl From<AttackDisabled> for Message
Source§fn from(value: AttackDisabled) -> Self
fn from(value: AttackDisabled) -> Self
Converts to this type from the input type.
Source§impl From<BeChainTarget> for Message
impl From<BeChainTarget> for Message
Source§fn from(value: BeChainTarget) -> Self
fn from(value: BeChainTarget) -> Self
Converts to this type from the input type.
Source§impl From<BecomeTarget> for Message
impl From<BecomeTarget> for Message
Source§fn from(value: BecomeTarget) -> Self
fn from(value: BecomeTarget) -> Self
Converts to this type from the input type.
Source§impl From<CancelTarget> for Message
impl From<CancelTarget> for Message
Source§fn from(value: CancelTarget) -> Self
fn from(value: CancelTarget) -> Self
Converts to this type from the input type.
Source§impl From<CardSelected> for Message
impl From<CardSelected> for Message
Source§fn from(value: CardSelected) -> Self
fn from(value: CardSelected) -> Self
Converts to this type from the input type.
Source§impl From<CardTarget> for Message
impl From<CardTarget> for Message
Source§fn from(value: CardTarget) -> Self
fn from(value: CardTarget) -> Self
Converts to this type from the input type.
Source§impl From<ChainDisabled> for Message
impl From<ChainDisabled> for Message
Source§fn from(value: ChainDisabled) -> Self
fn from(value: ChainDisabled) -> Self
Converts to this type from the input type.
Source§impl From<ChainNegated> for Message
impl From<ChainNegated> for Message
Source§fn from(value: ChainNegated) -> Self
fn from(value: ChainNegated) -> Self
Converts to this type from the input type.
Source§impl From<ChainSolved> for Message
impl From<ChainSolved> for Message
Source§fn from(value: ChainSolved) -> Self
fn from(value: ChainSolved) -> Self
Converts to this type from the input type.
Source§impl From<ChainSolving> for Message
impl From<ChainSolving> for Message
Source§fn from(value: ChainSolving) -> Self
fn from(value: ChainSolving) -> Self
Converts to this type from the input type.
Source§impl From<ChangeSide> for Message
impl From<ChangeSide> for Message
Source§fn from(value: ChangeSide) -> Self
fn from(value: ChangeSide) -> Self
Converts to this type from the input type.
Source§impl From<ConfirmCards> for Message
impl From<ConfirmCards> for Message
Source§fn from(value: ConfirmCards) -> Self
fn from(value: ConfirmCards) -> Self
Converts to this type from the input type.
Source§impl From<ConfirmDecktop> for Message
impl From<ConfirmDecktop> for Message
Source§fn from(value: ConfirmDecktop) -> Self
fn from(value: ConfirmDecktop) -> Self
Converts to this type from the input type.
Source§impl From<ConfirmExtraTop> for Message
impl From<ConfirmExtraTop> for Message
Source§fn from(value: ConfirmExtraTop) -> Self
fn from(value: ConfirmExtraTop) -> Self
Converts to this type from the input type.
Source§impl From<CreateGame> for Message
impl From<CreateGame> for Message
Source§fn from(value: CreateGame) -> Self
fn from(value: CreateGame) -> Self
Converts to this type from the input type.
Source§impl From<CreateRelation> for Message
impl From<CreateRelation> for Message
Source§fn from(value: CreateRelation) -> Self
fn from(value: CreateRelation) -> Self
Converts to this type from the input type.
Source§impl From<DamageStepEnd> for Message
impl From<DamageStepEnd> for Message
Source§fn from(value: DamageStepEnd) -> Self
fn from(value: DamageStepEnd) -> Self
Converts to this type from the input type.
Source§impl From<DamageStepStart> for Message
impl From<DamageStepStart> for Message
Source§fn from(value: DamageStepStart) -> Self
fn from(value: DamageStepStart) -> Self
Converts to this type from the input type.
Source§impl From<ErrorMessage> for Message
impl From<ErrorMessage> for Message
Source§fn from(value: ErrorMessage) -> Self
fn from(value: ErrorMessage) -> Self
Converts to this type from the input type.
Source§impl From<FieldDisabled> for Message
impl From<FieldDisabled> for Message
Source§fn from(value: FieldDisabled) -> Self
fn from(value: FieldDisabled) -> Self
Converts to this type from the input type.
Source§impl From<FieldFinish> for Message
impl From<FieldFinish> for Message
Source§fn from(value: FieldFinish) -> Self
fn from(value: FieldFinish) -> Self
Converts to this type from the input type.
Source§impl From<FlipSummoned> for Message
impl From<FlipSummoned> for Message
Source§fn from(value: FlipSummoned) -> Self
fn from(value: FlipSummoned) -> Self
Converts to this type from the input type.
Source§impl From<FlipSummoning> for Message
impl From<FlipSummoning> for Message
Source§fn from(value: FlipSummoning) -> Self
fn from(value: FlipSummoning) -> Self
Converts to this type from the input type.
Source§impl From<GameMessage> for Message
impl From<GameMessage> for Message
Source§fn from(value: GameMessage) -> Self
fn from(value: GameMessage) -> Self
Converts to this type from the input type.
Source§impl From<HandResult> for Message
impl From<HandResult> for Message
Source§fn from(value: HandResult) -> Self
fn from(value: HandResult) -> Self
Converts to this type from the input type.
Source§impl From<HandResult> for Message
impl From<HandResult> for Message
Source§fn from(value: HandResult) -> Self
fn from(value: HandResult) -> Self
Converts to this type from the input type.
Source§impl From<HsPlayerChange> for Message
impl From<HsPlayerChange> for Message
Source§fn from(value: HsPlayerChange) -> Self
fn from(value: HsPlayerChange) -> Self
Converts to this type from the input type.
Source§impl From<HsPlayerEnter> for Message
impl From<HsPlayerEnter> for Message
Source§fn from(value: HsPlayerEnter) -> Self
fn from(value: HsPlayerEnter) -> Self
Converts to this type from the input type.
Source§impl From<HsWatchChange> for Message
impl From<HsWatchChange> for Message
Source§fn from(value: HsWatchChange) -> Self
fn from(value: HsWatchChange) -> Self
Converts to this type from the input type.
Source§impl From<MissedEffect> for Message
impl From<MissedEffect> for Message
Source§fn from(value: MissedEffect) -> Self
fn from(value: MissedEffect) -> Self
Converts to this type from the input type.
Source§impl From<PlayerHint> for Message
impl From<PlayerHint> for Message
Source§fn from(value: PlayerHint) -> Self
fn from(value: PlayerHint) -> Self
Converts to this type from the input type.
Source§impl From<PositionChange> for Message
impl From<PositionChange> for Message
Source§fn from(value: PositionChange) -> Self
fn from(value: PositionChange) -> Self
Converts to this type from the input type.
Source§impl From<RandomSelected> for Message
impl From<RandomSelected> for Message
Source§fn from(value: RandomSelected) -> Self
fn from(value: RandomSelected) -> Self
Converts to this type from the input type.
Source§impl From<RefreshDeck> for Message
impl From<RefreshDeck> for Message
Source§fn from(value: RefreshDeck) -> Self
fn from(value: RefreshDeck) -> Self
Converts to this type from the input type.
Source§impl From<ReleaseRelation> for Message
impl From<ReleaseRelation> for Message
Source§fn from(value: ReleaseRelation) -> Self
fn from(value: ReleaseRelation) -> Self
Converts to this type from the input type.
Source§impl From<ReloadField> for Message
impl From<ReloadField> for Message
Source§fn from(value: ReloadField) -> Self
fn from(value: ReloadField) -> Self
Converts to this type from the input type.
Source§impl From<RemoveCounter> for Message
impl From<RemoveCounter> for Message
Source§fn from(value: RemoveCounter) -> Self
fn from(value: RemoveCounter) -> Self
Converts to this type from the input type.
Source§impl From<RequestDeck> for Message
impl From<RequestDeck> for Message
Source§fn from(value: RequestDeck) -> Self
fn from(value: RequestDeck) -> Self
Converts to this type from the input type.
Source§impl From<ReverseDeck> for Message
impl From<ReverseDeck> for Message
Source§fn from(value: ReverseDeck) -> Self
fn from(value: ReverseDeck) -> Self
Converts to this type from the input type.
Source§impl From<RockPaperScissors> for Message
impl From<RockPaperScissors> for Message
Source§fn from(value: RockPaperScissors) -> Self
fn from(value: RockPaperScissors) -> Self
Converts to this type from the input type.
Source§impl From<SelectBattleCommand> for Message
impl From<SelectBattleCommand> for Message
Source§fn from(value: SelectBattleCommand) -> Self
fn from(value: SelectBattleCommand) -> Self
Converts to this type from the input type.
Source§impl From<SelectCard> for Message
impl From<SelectCard> for Message
Source§fn from(value: SelectCard) -> Self
fn from(value: SelectCard) -> Self
Converts to this type from the input type.
Source§impl From<SelectChain> for Message
impl From<SelectChain> for Message
Source§fn from(value: SelectChain) -> Self
fn from(value: SelectChain) -> Self
Converts to this type from the input type.
Source§impl From<SelectCounter> for Message
impl From<SelectCounter> for Message
Source§fn from(value: SelectCounter) -> Self
fn from(value: SelectCounter) -> Self
Converts to this type from the input type.
Source§impl From<SelectDisableField> for Message
impl From<SelectDisableField> for Message
Source§fn from(value: SelectDisableField) -> Self
fn from(value: SelectDisableField) -> Self
Converts to this type from the input type.
Source§impl From<SelectEffectYesNo> for Message
impl From<SelectEffectYesNo> for Message
Source§fn from(value: SelectEffectYesNo) -> Self
fn from(value: SelectEffectYesNo) -> Self
Converts to this type from the input type.
Source§impl From<SelectHand> for Message
impl From<SelectHand> for Message
Source§fn from(value: SelectHand) -> Self
fn from(value: SelectHand) -> Self
Converts to this type from the input type.
Source§impl From<SelectIdleCommand> for Message
impl From<SelectIdleCommand> for Message
Source§fn from(value: SelectIdleCommand) -> Self
fn from(value: SelectIdleCommand) -> Self
Converts to this type from the input type.
Source§impl From<SelectOption> for Message
impl From<SelectOption> for Message
Source§fn from(value: SelectOption) -> Self
fn from(value: SelectOption) -> Self
Converts to this type from the input type.
Source§impl From<SelectPlace> for Message
impl From<SelectPlace> for Message
Source§fn from(value: SelectPlace) -> Self
fn from(value: SelectPlace) -> Self
Converts to this type from the input type.
Source§impl From<SelectPosition> for Message
impl From<SelectPosition> for Message
Source§fn from(value: SelectPosition) -> Self
fn from(value: SelectPosition) -> Self
Converts to this type from the input type.
Source§impl From<SelectTribute> for Message
impl From<SelectTribute> for Message
Source§fn from(value: SelectTribute) -> Self
fn from(value: SelectTribute) -> Self
Converts to this type from the input type.
Source§impl From<SelectUnselectCard> for Message
impl From<SelectUnselectCard> for Message
Source§fn from(value: SelectUnselectCard) -> Self
fn from(value: SelectUnselectCard) -> Self
Converts to this type from the input type.
Source§impl From<SelectYesNo> for Message
impl From<SelectYesNo> for Message
Source§fn from(value: SelectYesNo) -> Self
fn from(value: SelectYesNo) -> Self
Converts to this type from the input type.
Source§impl From<ShuffleDeck> for Message
impl From<ShuffleDeck> for Message
Source§fn from(value: ShuffleDeck) -> Self
fn from(value: ShuffleDeck) -> Self
Converts to this type from the input type.
Source§impl From<ShuffleExtra> for Message
impl From<ShuffleExtra> for Message
Source§fn from(value: ShuffleExtra) -> Self
fn from(value: ShuffleExtra) -> Self
Converts to this type from the input type.
Source§impl From<ShuffleHand> for Message
impl From<ShuffleHand> for Message
Source§fn from(value: ShuffleHand) -> Self
fn from(value: ShuffleHand) -> Self
Converts to this type from the input type.
Source§impl From<ShuffleSetCard> for Message
impl From<ShuffleSetCard> for Message
Source§fn from(value: ShuffleSetCard) -> Self
fn from(value: ShuffleSetCard) -> Self
Converts to this type from the input type.
Source§impl From<SpecialSummoned> for Message
impl From<SpecialSummoned> for Message
Source§fn from(value: SpecialSummoned) -> Self
fn from(value: SpecialSummoned) -> Self
Converts to this type from the input type.
Source§impl From<SpecialSummoning> for Message
impl From<SpecialSummoning> for Message
Source§fn from(value: SpecialSummoning) -> Self
fn from(value: SpecialSummoning) -> Self
Converts to this type from the input type.
Source§impl From<SwapGraveDeck> for Message
impl From<SwapGraveDeck> for Message
Source§fn from(value: SwapGraveDeck) -> Self
fn from(value: SwapGraveDeck) -> Self
Converts to this type from the input type.
Source§impl From<TeammateSurrender> for Message
impl From<TeammateSurrender> for Message
Source§fn from(value: TeammateSurrender) -> Self
fn from(value: TeammateSurrender) -> Self
Converts to this type from the input type.
Source§impl From<TypeChange> for Message
impl From<TypeChange> for Message
Source§fn from(value: TypeChange) -> Self
fn from(value: TypeChange) -> Self
Converts to this type from the input type.
Source§impl From<UpdateCard> for Message
impl From<UpdateCard> for Message
Source§fn from(value: UpdateCard) -> Self
fn from(value: UpdateCard) -> Self
Converts to this type from the input type.
Source§impl From<UpdateData> for Message
impl From<UpdateData> for Message
Source§fn from(value: UpdateData) -> Self
fn from(value: UpdateData) -> Self
Converts to this type from the input type.
Source§impl From<WaitingSide> for Message
impl From<WaitingSide> for Message
Source§fn from(value: WaitingSide) -> Self
fn from(value: WaitingSide) -> Self
Converts to this type from the input type.
impl PureMessage for Message
Source§impl<'m> TryFrom<&'m Message> for &'m GameMessage
impl<'m> TryFrom<&'m Message> for &'m GameMessage
Source§impl<'m> TryFrom<&'m Message> for &'m ErrorMessage
impl<'m> TryFrom<&'m Message> for &'m ErrorMessage
Source§impl<'m> TryFrom<&'m Message> for &'m SelectHand
impl<'m> TryFrom<&'m Message> for &'m SelectHand
Source§impl<'m> TryFrom<&'m Message> for &'m HandResult
impl<'m> TryFrom<&'m Message> for &'m HandResult
Source§impl<'m> TryFrom<&'m Message> for &'m ChangeSide
impl<'m> TryFrom<&'m Message> for &'m ChangeSide
Source§impl<'m> TryFrom<&'m Message> for &'m WaitingSide
impl<'m> TryFrom<&'m Message> for &'m WaitingSide
Source§impl<'m> TryFrom<&'m Message> for &'m CreateGame
impl<'m> TryFrom<&'m Message> for &'m CreateGame
Source§impl<'m> TryFrom<&'m Message> for &'m TypeChange
impl<'m> TryFrom<&'m Message> for &'m TypeChange
Source§impl<'m> TryFrom<&'m Message> for &'m HsPlayerEnter
impl<'m> TryFrom<&'m Message> for &'m HsPlayerEnter
Source§impl<'m> TryFrom<&'m Message> for &'m HsPlayerChange
impl<'m> TryFrom<&'m Message> for &'m HsPlayerChange
Source§impl<'m> TryFrom<&'m Message> for &'m HsWatchChange
impl<'m> TryFrom<&'m Message> for &'m HsWatchChange
Source§impl<'m> TryFrom<&'m Message> for &'m TeammateSurrender
impl<'m> TryFrom<&'m Message> for &'m TeammateSurrender
Source§impl<'m> TryFrom<&'m Message> for &'m FieldFinish
impl<'m> TryFrom<&'m Message> for &'m FieldFinish
Source§impl TryFrom<Message> for GameMessage
impl TryFrom<Message> for GameMessage
Source§impl TryFrom<Message> for ErrorMessage
impl TryFrom<Message> for ErrorMessage
Source§impl TryFrom<Message> for SelectHand
impl TryFrom<Message> for SelectHand
Source§impl TryFrom<Message> for HandResult
impl TryFrom<Message> for HandResult
Source§impl TryFrom<Message> for ChangeSide
impl TryFrom<Message> for ChangeSide
Source§impl TryFrom<Message> for WaitingSide
impl TryFrom<Message> for WaitingSide
Source§impl TryFrom<Message> for CreateGame
impl TryFrom<Message> for CreateGame
Source§impl TryFrom<Message> for TypeChange
impl TryFrom<Message> for TypeChange
Source§impl TryFrom<Message> for HsPlayerEnter
impl TryFrom<Message> for HsPlayerEnter
Source§impl TryFrom<Message> for HsPlayerChange
impl TryFrom<Message> for HsPlayerChange
Source§impl TryFrom<Message> for HsWatchChange
impl TryFrom<Message> for HsWatchChange
Source§impl TryFrom<Message> for TeammateSurrender
impl TryFrom<Message> for TeammateSurrender
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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