pub enum SimpleExternalProjection<Transport, SourceCleanliness> {
Continue {
connection: Conn<Transport, Simple, SourceCleanliness>,
message: SimpleContinueExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
CopyIn {
connection: Conn<Transport, CopyIn, SourceCleanliness>,
message: SimpleCopyInExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
CopyOut {
connection: Conn<Transport, CopyOut, SourceCleanliness>,
message: SimpleCopyOutExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
CopyBoth {
connection: Conn<Transport, CopyBoth, SourceCleanliness>,
message: SimpleCopyBothExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Ready {
connection: Conn<Transport, Ready, SourceCleanliness>,
message: SimpleReadyExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
Error {
connection: Conn<Transport, Draining, SourceCleanliness>,
message: SimpleErrorExternalTransitionMessage,
source_cleanliness: PhantomData<SourceCleanliness>,
},
// some variants omitted
}Expand description
Typed next-connection projection for SimpleExternalMessage.
Variants§
Continue
The Event::Continue transition and its correctly typed next connection.
Fields
connection: Conn<Transport, Simple, SourceCleanliness>Connection after applying the selected message transition.
message: SimpleContinueExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
CopyIn
The Event::CopyIn transition and its correctly typed next connection.
Fields
connection: Conn<Transport, CopyIn, SourceCleanliness>Connection after applying the selected message transition.
message: SimpleCopyInExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
CopyOut
The Event::CopyOut transition and its correctly typed next connection.
Fields
connection: Conn<Transport, CopyOut, SourceCleanliness>Connection after applying the selected message transition.
message: SimpleCopyOutExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
CopyBoth
The Event::CopyBoth transition and its correctly typed next connection.
Fields
connection: Conn<Transport, CopyBoth, SourceCleanliness>Connection after applying the selected message transition.
message: SimpleCopyBothExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Ready
The Event::Ready transition and its correctly typed next connection.
Fields
connection: Conn<Transport, Ready, SourceCleanliness>Connection after applying the selected message transition.
message: SimpleReadyExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.
Error
The Event::Error transition and its correctly typed next connection.
Fields
connection: Conn<Transport, Draining, SourceCleanliness>Connection after applying the selected message transition.
message: SimpleErrorExternalTransitionMessageValidated message which selected this transition.
source_cleanliness: PhantomData<SourceCleanliness>Retains the source cleanliness parameter even when replaced.