macro_rules! derive_deftly_template_Handshake {
({ $($driver:tt)* } [$($aoptions:tt)*] ($($future:tt)*) $($tpassthrough:tt)*) => { ... };
($($wrong:tt)*) => { ... };
}Expand description
Macro-generated components for a handshake outer state structure
§Requirements
- Must be a struct containing
state: State Statemust be in scope as a binding at the derivation siteStatemust have a unit variantFailed- One
Optionfield must be decorated#[deftly(handshake(output))]
§Generates
- Implementation of
HasHandshake - Implementation of
HasHandshakeState - Implementation of
HasHandshakeOutput
This is a derive_deftly template. Do not invoke it directly.
To use it, write: #[derive(Deftly)] #[derive_deftly(Handshake)].