Expand description
Practical types used in the ygopro message flow.
This module provides the request/response machinery that handlers use to extract their parameters and to produce a response.
Due to Rust’s orphan rule and impl-conflict limitations, only the following
FromRequest implementations are provided. Names in <> are the free type
variables of each impl.
Blanket impls:
| Extracted type | Source |
|---|---|
Extra (SocketAddr, Netplayer, CorePlayer, usize, u8, u32) | Request<Message, Extra> |
&Message | Request<Message, Extra> |
&mut Bundle<Req, State, Res> | Bundle<Req, State, Res> |
&mut Response<Message> | Bundle<Req, State, Response<Message>> |
&mut StopFlag | Bundle<Req, State, Res> |
&mut Box<dyn Any + Send> | Bundle<Box<dyn Any + Send>, State, Res> |
&mut anymap | Bundle<Req, State, Res> (requires State: ContainsMapMut) |
Per-variant impls (generated for every message variant of ctos::, stoc:: and
gm::, which are treated equally; one example per family):
| Extracted type | Source |
|---|---|
&ctos::JoinGame | Request<ctos::Message, Extra> / ctos::Message |
&stoc::JoinGame | Request<stoc::Message, Extra> / stoc::Message |
&gm::Move | Request<gm::Message, Extra> / gm::Message |
&ctos::JoinGame | Request<Complex<ctos::Message>, Extra> / Complex<ctos::Message> |
&stoc::JoinGame | Request<Complex<stoc::Message>, Extra> / Complex<stoc::Message> |
&gm::Move | Request<Complex<gm::Message>, Extra> / Complex<gm::Message> |
&gm::Move | Request<Complex<stoc::Message>, Extra> / Complex<stoc::Message> |
Structs§
- Request
- A request carrying a message and an extra message.
Enums§
- Response
- An enum conforming to the ygopro data flow.
Traits§
- Contains
Map - A state that exposes an
anymapby shared reference. - Contains
MapMut - A state that exposes an
anymapby mutable reference.