Skip to main content

Message

Enum Message 

Source
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

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_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_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 Message

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_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_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 Message

Source§

fn clone(&self) -> Message

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 Debug for Message

Source§

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

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

impl From<&Message> for MessageType

Source§

fn from(value: &Message) -> Self

Converts to this type from the input type.
Source§

impl From<AIName> for Message

Source§

fn from(value: AIName) -> Self

Converts to this type from the input type.
Source§

impl From<AddCounter> for Message

Source§

fn from(value: AddCounter) -> Self

Converts to this type from the input type.
Source§

impl From<AnnounceAttribute> for Message

Source§

fn from(value: AnnounceAttribute) -> Self

Converts to this type from the input type.
Source§

impl From<AnnounceCard> for Message

Source§

fn from(value: AnnounceCard) -> Self

Converts to this type from the input type.
Source§

impl From<AnnounceNumber> for Message

Source§

fn from(value: AnnounceNumber) -> Self

Converts to this type from the input type.
Source§

impl From<AnnounceRace> for Message

Source§

fn from(value: AnnounceRace) -> Self

Converts to this type from the input type.
Source§

impl From<Attack> for Message

Source§

fn from(value: Attack) -> Self

Converts to this type from the input type.
Source§

impl From<AttackDisabled> for Message

Source§

fn from(value: AttackDisabled) -> Self

Converts to this type from the input type.
Source§

impl From<Battle> for Message

Source§

fn from(value: Battle) -> Self

Converts to this type from the input type.
Source§

impl From<BeChainTarget> for Message

Source§

fn from(value: BeChainTarget) -> Self

Converts to this type from the input type.
Source§

impl From<BecomeTarget> for Message

Source§

fn from(value: BecomeTarget) -> Self

Converts to this type from the input type.
Source§

impl From<CancelTarget> for Message

Source§

fn from(value: CancelTarget) -> Self

Converts to this type from the input type.
Source§

impl From<CardHint> for Message

Source§

fn from(value: CardHint) -> Self

Converts to this type from the input type.
Source§

impl From<CardSelected> for Message

Source§

fn from(value: CardSelected) -> Self

Converts to this type from the input type.
Source§

impl From<CardTarget> for Message

Source§

fn from(value: CardTarget) -> Self

Converts to this type from the input type.
Source§

impl From<ChainDisabled> for Message

Source§

fn from(value: ChainDisabled) -> Self

Converts to this type from the input type.
Source§

impl From<ChainEnd> for Message

Source§

fn from(value: ChainEnd) -> Self

Converts to this type from the input type.
Source§

impl From<ChainNegated> for Message

Source§

fn from(value: ChainNegated) -> Self

Converts to this type from the input type.
Source§

impl From<ChainSolved> for Message

Source§

fn from(value: ChainSolved) -> Self

Converts to this type from the input type.
Source§

impl From<ChainSolving> for Message

Source§

fn from(value: ChainSolving) -> Self

Converts to this type from the input type.
Source§

impl From<Chained> for Message

Source§

fn from(value: Chained) -> Self

Converts to this type from the input type.
Source§

impl From<Chaining> for Message

Source§

fn from(value: Chaining) -> Self

Converts to this type from the input type.
Source§

impl From<ChangeSide> for Message

Source§

fn from(value: ChangeSide) -> Self

Converts to this type from the input type.
Source§

impl From<Chat> for Message

Source§

fn from(value: Chat) -> Self

Converts to this type from the input type.
Source§

impl From<ConfirmCards> for Message

Source§

fn from(value: ConfirmCards) -> Self

Converts to this type from the input type.
Source§

impl From<ConfirmDecktop> for Message

Source§

fn from(value: ConfirmDecktop) -> Self

Converts to this type from the input type.
Source§

impl From<ConfirmExtraTop> for Message

Source§

fn from(value: ConfirmExtraTop) -> Self

Converts to this type from the input type.
Source§

impl From<CreateGame> for Message

Source§

fn from(value: CreateGame) -> Self

Converts to this type from the input type.
Source§

impl From<CreateRelation> for Message

Source§

fn from(value: CreateRelation) -> Self

Converts to this type from the input type.
Source§

impl From<CustomMsg> for Message

Source§

fn from(value: CustomMsg) -> Self

Converts to this type from the input type.
Source§

impl From<Damage> for Message

Source§

fn from(value: Damage) -> Self

Converts to this type from the input type.
Source§

impl From<DamageStepEnd> for Message

Source§

fn from(value: DamageStepEnd) -> Self

Converts to this type from the input type.
Source§

impl From<DamageStepStart> for Message

Source§

fn from(value: DamageStepStart) -> Self

Converts to this type from the input type.
Source§

impl From<DeckCount> for Message

Source§

fn from(value: DeckCount) -> Self

Converts to this type from the input type.
Source§

impl From<DeckTop> for Message

Source§

fn from(value: DeckTop) -> Self

Converts to this type from the input type.
Source§

impl From<Draw> for Message

Source§

fn from(value: Draw) -> Self

Converts to this type from the input type.
Source§

impl From<DuelEnd> for Message

Source§

fn from(value: DuelEnd) -> Self

Converts to this type from the input type.
Source§

impl From<DuelStart> for Message

Source§

fn from(value: DuelStart) -> Self

Converts to this type from the input type.
Source§

impl From<Equip> for Message

Source§

fn from(value: Equip) -> Self

Converts to this type from the input type.
Source§

impl From<ErrorMessage> for Message

Source§

fn from(value: ErrorMessage) -> Self

Converts to this type from the input type.
Source§

impl From<FieldDisabled> for Message

Source§

fn from(value: FieldDisabled) -> Self

Converts to this type from the input type.
Source§

impl From<FieldFinish> for Message

Source§

fn from(value: FieldFinish) -> Self

Converts to this type from the input type.
Source§

impl From<FlipSummoned> for Message

Source§

fn from(value: FlipSummoned) -> Self

Converts to this type from the input type.
Source§

impl From<FlipSummoning> for Message

Source§

fn from(value: FlipSummoning) -> Self

Converts to this type from the input type.
Source§

impl From<GameMessage> for Message

Source§

fn from(value: GameMessage) -> Self

Converts to this type from the input type.
Source§

impl From<HandResult> for Message

Source§

fn from(value: HandResult) -> Self

Converts to this type from the input type.
Source§

impl From<HandResult> for Message

Source§

fn from(value: HandResult) -> Self

Converts to this type from the input type.
Source§

impl From<Hint> for Message

Source§

fn from(value: Hint) -> Self

Converts to this type from the input type.
Source§

impl From<HsPlayerChange> for Message

Source§

fn from(value: HsPlayerChange) -> Self

Converts to this type from the input type.
Source§

impl From<HsPlayerEnter> for Message

Source§

fn from(value: HsPlayerEnter) -> Self

Converts to this type from the input type.
Source§

impl From<HsWatchChange> for Message

Source§

fn from(value: HsWatchChange) -> Self

Converts to this type from the input type.
Source§

impl From<JoinGame> for Message

Source§

fn from(value: JoinGame) -> Self

Converts to this type from the input type.
Source§

impl From<LPUpdate> for Message

Source§

fn from(value: LPUpdate) -> Self

Converts to this type from the input type.
Source§

impl From<LeaveGame> for Message

Source§

fn from(value: LeaveGame) -> Self

Converts to this type from the input type.
Source§

impl From<MatchKill> for Message

Source§

fn from(value: MatchKill) -> Self

Converts to this type from the input type.
Source§

impl From<Message> for Message

Source§

fn from(value: Message) -> Self

Converts to this type from the input type.
Source§

impl From<MissedEffect> for Message

Source§

fn from(value: MissedEffect) -> Self

Converts to this type from the input type.
Source§

impl From<Move> for Message

Source§

fn from(value: Move) -> Self

Converts to this type from the input type.
Source§

impl From<NewPhase> for Message

Source§

fn from(value: NewPhase) -> Self

Converts to this type from the input type.
Source§

impl From<NewTurn> for Message

Source§

fn from(value: NewTurn) -> Self

Converts to this type from the input type.
Source§

impl From<PayLPCost> for Message

Source§

fn from(value: PayLPCost) -> Self

Converts to this type from the input type.
Source§

impl From<PlayerHint> for Message

Source§

fn from(value: PlayerHint) -> Self

Converts to this type from the input type.
Source§

impl From<PositionChange> for Message

Source§

fn from(value: PositionChange) -> Self

Converts to this type from the input type.
Source§

impl From<RandomSelected> for Message

Source§

fn from(value: RandomSelected) -> Self

Converts to this type from the input type.
Source§

impl From<Recover> for Message

Source§

fn from(value: Recover) -> Self

Converts to this type from the input type.
Source§

impl From<RefreshDeck> for Message

Source§

fn from(value: RefreshDeck) -> Self

Converts to this type from the input type.
Source§

impl From<ReleaseRelation> for Message

Source§

fn from(value: ReleaseRelation) -> Self

Converts to this type from the input type.
Source§

impl From<ReloadField> for Message

Source§

fn from(value: ReloadField) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveCounter> for Message

Source§

fn from(value: RemoveCounter) -> Self

Converts to this type from the input type.
Source§

impl From<Replay> for Message

Source§

fn from(value: Replay) -> Self

Converts to this type from the input type.
Source§

impl From<RequestDeck> for Message

Source§

fn from(value: RequestDeck) -> Self

Converts to this type from the input type.
Source§

impl From<Retry> for Message

Source§

fn from(value: Retry) -> Self

Converts to this type from the input type.
Source§

impl From<ReverseDeck> for Message

Source§

fn from(value: ReverseDeck) -> Self

Converts to this type from the input type.
Source§

impl From<RockPaperScissors> for Message

Source§

fn from(value: RockPaperScissors) -> Self

Converts to this type from the input type.
Source§

impl From<SelectBattleCommand> for Message

Source§

fn from(value: SelectBattleCommand) -> Self

Converts to this type from the input type.
Source§

impl From<SelectCard> for Message

Source§

fn from(value: SelectCard) -> Self

Converts to this type from the input type.
Source§

impl From<SelectChain> for Message

Source§

fn from(value: SelectChain) -> Self

Converts to this type from the input type.
Source§

impl From<SelectCounter> for Message

Source§

fn from(value: SelectCounter) -> Self

Converts to this type from the input type.
Source§

impl From<SelectDisableField> for Message

Source§

fn from(value: SelectDisableField) -> Self

Converts to this type from the input type.
Source§

impl From<SelectEffectYesNo> for Message

Source§

fn from(value: SelectEffectYesNo) -> Self

Converts to this type from the input type.
Source§

impl From<SelectHand> for Message

Source§

fn from(value: SelectHand) -> Self

Converts to this type from the input type.
Source§

impl From<SelectIdleCommand> for Message

Source§

fn from(value: SelectIdleCommand) -> Self

Converts to this type from the input type.
Source§

impl From<SelectOption> for Message

Source§

fn from(value: SelectOption) -> Self

Converts to this type from the input type.
Source§

impl From<SelectPlace> for Message

Source§

fn from(value: SelectPlace) -> Self

Converts to this type from the input type.
Source§

impl From<SelectPosition> for Message

Source§

fn from(value: SelectPosition) -> Self

Converts to this type from the input type.
Source§

impl From<SelectSum> for Message

Source§

fn from(value: SelectSum) -> Self

Converts to this type from the input type.
Source§

impl From<SelectTp> for Message

Source§

fn from(value: SelectTp) -> Self

Converts to this type from the input type.
Source§

impl From<SelectTribute> for Message

Source§

fn from(value: SelectTribute) -> Self

Converts to this type from the input type.
Source§

impl From<SelectUnselectCard> for Message

Source§

fn from(value: SelectUnselectCard) -> Self

Converts to this type from the input type.
Source§

impl From<SelectYesNo> for Message

Source§

fn from(value: SelectYesNo) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Message

Source§

fn from(value: Set) -> Self

Converts to this type from the input type.
Source§

impl From<ShowHint> for Message

Source§

fn from(value: ShowHint) -> Self

Converts to this type from the input type.
Source§

impl From<ShuffleDeck> for Message

Source§

fn from(value: ShuffleDeck) -> Self

Converts to this type from the input type.
Source§

impl From<ShuffleExtra> for Message

Source§

fn from(value: ShuffleExtra) -> Self

Converts to this type from the input type.
Source§

impl From<ShuffleHand> for Message

Source§

fn from(value: ShuffleHand) -> Self

Converts to this type from the input type.
Source§

impl From<ShuffleSetCard> for Message

Source§

fn from(value: ShuffleSetCard) -> Self

Converts to this type from the input type.
Source§

impl From<SortCard> for Message

Source§

fn from(value: SortCard) -> Self

Converts to this type from the input type.
Source§

impl From<SortChain> for Message

Source§

fn from(value: SortChain) -> Self

Converts to this type from the input type.
Source§

impl From<SpecialSummoned> for Message

Source§

fn from(value: SpecialSummoned) -> Self

Converts to this type from the input type.
Source§

impl From<SpecialSummoning> for Message

Source§

fn from(value: SpecialSummoning) -> Self

Converts to this type from the input type.
Source§

impl From<Start> for Message

Source§

fn from(value: Start) -> Self

Converts to this type from the input type.
Source§

impl From<Summoned> for Message

Source§

fn from(value: Summoned) -> Self

Converts to this type from the input type.
Source§

impl From<Summoning> for Message

Source§

fn from(value: Summoning) -> Self

Converts to this type from the input type.
Source§

impl From<Swap> for Message

Source§

fn from(value: Swap) -> Self

Converts to this type from the input type.
Source§

impl From<SwapGraveDeck> for Message

Source§

fn from(value: SwapGraveDeck) -> Self

Converts to this type from the input type.
Source§

impl From<TagSwap> for Message

Source§

fn from(value: TagSwap) -> Self

Converts to this type from the input type.
Source§

impl From<TeammateSurrender> for Message

Source§

fn from(value: TeammateSurrender) -> Self

Converts to this type from the input type.
Source§

impl From<TimeLimit> for Message

Source§

fn from(value: TimeLimit) -> Self

Converts to this type from the input type.
Source§

impl From<TossCoin> for Message

Source§

fn from(value: TossCoin) -> Self

Converts to this type from the input type.
Source§

impl From<TossDice> for Message

Source§

fn from(value: TossDice) -> Self

Converts to this type from the input type.
Source§

impl From<TpResult> for Message

Source§

fn from(value: TpResult) -> Self

Converts to this type from the input type.
Source§

impl From<TypeChange> for Message

Source§

fn from(value: TypeChange) -> Self

Converts to this type from the input type.
Source§

impl From<Unequip> for Message

Source§

fn from(value: Unequip) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateCard> for Message

Source§

fn from(value: UpdateCard) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateData> for Message

Source§

fn from(value: UpdateData) -> Self

Converts to this type from the input type.
Source§

impl From<Waiting> for Message

Source§

fn from(value: Waiting) -> Self

Converts to this type from the input type.
Source§

impl From<WaitingSide> for Message

Source§

fn from(value: WaitingSide) -> Self

Converts to this type from the input type.
Source§

impl From<Win> for Message

Source§

fn from(value: Win) -> Self

Converts to this type from the input type.
Source§

impl PureMessage for Message

Source§

impl<'m> TryFrom<&'m Message> for &'m GameMessage

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m ErrorMessage

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m SelectHand

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m SelectTp

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m HandResult

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m TpResult

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m ChangeSide

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m WaitingSide

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m DeckCount

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m CreateGame

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m JoinGame

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m TypeChange

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m LeaveGame

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m DuelStart

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m DuelEnd

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m Replay

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m TimeLimit

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m Chat

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m HsPlayerEnter

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m HsPlayerChange

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m HsWatchChange

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m TeammateSurrender

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'m> TryFrom<&'m Message> for &'m FieldFinish

Source§

type Error = Error

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

fn try_from(value: &'m Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for GameMessage

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for ErrorMessage

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for SelectHand

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for SelectTp

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for HandResult

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for TpResult

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for ChangeSide

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for WaitingSide

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for DeckCount

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for CreateGame

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for JoinGame

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for TypeChange

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for LeaveGame

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for DuelStart

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for DuelEnd

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for Replay

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for TimeLimit

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for Chat

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for HsPlayerEnter

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for HsPlayerChange

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for HsWatchChange

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for TeammateSurrender

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Message> for FieldFinish

Source§

type Error = Error

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

fn try_from(value: Message) -> Result<Self, Self::Error>

Performs the conversion.

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<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.