Skip to main content

Message

Enum Message 

Source
pub enum Message {
Show 18 variants Response(Response), UpdateDeck(UpdateDeck), HandResult(HandResult), TpResult(TpResult), PlayerInfo(PlayerInfo), CreateGame(CreateGame), JoinGame(JoinGame), LeaveGame(LeaveGame), Surrender(Surrender), TimeConfirm(TimeConfirm), Chat(Chat), HsToDuelist(HsToDuelist), HsToObserver(HsToObserver), HsReady(HsReady), HsNotReady(HsNotReady), HsKick(HsKick), HsStart(HsStart), RequestField(RequestField),
}

Variants§

§

Response(Response)

§

UpdateDeck(UpdateDeck)

§

HandResult(HandResult)

§

TpResult(TpResult)

§

PlayerInfo(PlayerInfo)

§

CreateGame(CreateGame)

§

JoinGame(JoinGame)

§

LeaveGame(LeaveGame)

§

Surrender(Surrender)

§

TimeConfirm(TimeConfirm)

§

Chat(Chat)

§

HsToDuelist(HsToDuelist)

§

HsToObserver(HsToObserver)

§

HsReady(HsReady)

§

HsNotReady(HsNotReady)

§

HsKick(HsKick)

§

HsStart(HsStart)

§

RequestField(RequestField)

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

Source§

fn from(value: Chat) -> 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<HandResult> for Message

Source§

fn from(value: HandResult) -> Self

Converts to this type from the input type.
Source§

impl From<HsKick> for Message

Source§

fn from(value: HsKick) -> Self

Converts to this type from the input type.
Source§

impl From<HsNotReady> for Message

Source§

fn from(value: HsNotReady) -> Self

Converts to this type from the input type.
Source§

impl From<HsReady> for Message

Source§

fn from(value: HsReady) -> Self

Converts to this type from the input type.
Source§

impl From<HsStart> for Message

Source§

fn from(value: HsStart) -> Self

Converts to this type from the input type.
Source§

impl From<HsToDuelist> for Message

Source§

fn from(value: HsToDuelist) -> Self

Converts to this type from the input type.
Source§

impl From<HsToObserver> for Message

Source§

fn from(value: HsToObserver) -> 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<LeaveGame> for Message

Source§

fn from(value: LeaveGame) -> Self

Converts to this type from the input type.
Source§

impl From<PlayerInfo> for Message

Source§

fn from(value: PlayerInfo) -> Self

Converts to this type from the input type.
Source§

impl From<RequestField> for Message

Source§

fn from(value: RequestField) -> Self

Converts to this type from the input type.
Source§

impl From<Response> for Message

Source§

fn from(value: Response) -> Self

Converts to this type from the input type.
Source§

impl From<Surrender> for Message

Source§

fn from(value: Surrender) -> Self

Converts to this type from the input type.
Source§

impl From<TimeConfirm> for Message

Source§

fn from(value: TimeConfirm) -> 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<UpdateDeck> for Message

Source§

fn from(value: UpdateDeck) -> Self

Converts to this type from the input type.
Source§

impl PureMessage for Message

Source§

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

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 UpdateDeck

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 PlayerInfo

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

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 TimeConfirm

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 HsToDuelist

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 HsToObserver

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 HsReady

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 HsNotReady

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 HsKick

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 HsStart

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 RequestField

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 Response

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 UpdateDeck

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 PlayerInfo

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

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 TimeConfirm

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 HsToDuelist

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 HsToObserver

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 HsReady

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 HsNotReady

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 HsKick

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 HsStart

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 RequestField

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.