ExMCP.Client.Transitions (ex_mcp v0.9.2)
View SourceState transition logic and guards for the ExMCP client state machine.
This module centralizes all state transition logic, including:
- Guards to prevent invalid transitions
- Data transformation functions
- Error handling and cleanup
Summary
Functions
Adds a pending request to the ready state.
Checks if the client can connect from the current state.
Checks if a request can be sent in the current state.
Completes a request with a successful response.
Marks a request as failed and replies to the caller.
Transitions from disconnected to connecting state.
Transitions to disconnected state from any state.
Transitions from connecting to handshaking state.
Transitions from handshaking to ready state.
Transitions from ready to reconnecting state.
Functions
Adds a pending request to the ready state.
Checks if the client can connect from the current state.
Checks if a request can be sent in the current state.
Completes a request with a successful response.
Marks a request as failed and replies to the caller.
Transitions from disconnected to connecting state.
Transitions to disconnected state from any state.
Transitions from connecting to handshaking state.
Transitions from handshaking to ready state.
Transitions from ready to reconnecting state.