Sign in

    colmugx/acp/client/protocol does not have a README file

    ClientProtocolError

    pub(all) suberror ClientProtocolError {
    NotReady(method_name~ : String)
    AlreadyReady
    CapabilityDenied(method_name~ : String, capability~ : String)
    } derive(Eq,
    Debug
    )

    Explicit failures from Client protocol readiness and capability gates.

    ClientProtocolError::equal

    ClientProtocolError::not_equal

    ClientProtocolCommand

    Commands emitted for the runtime or endpoint adapter. They are data only; no async operation, task, or side effect is started by this reducer.

    ClientProtocolCommand::equal

    ClientProtocolCommand::not_equal

    ClientProtocolEvent

    Events accepted by the pure Client-side reducer.

    ClientProtocolEvent::equal

    ClientProtocolEvent::not_equal

    ClientProtocolPhase

    pub(all) enum ClientProtocolPhase {
    AwaitingReady
    Ready
    } derive(Eq,
    Debug
    )

    The phase of the Client-side protocol lifecycle.

    ClientProtocolPhase::equal

    ClientProtocolPhase::not_equal

    ClientProtocolState

    Immutable Client-side state after capability negotiation data is known.

    The capability field remains nullable so an omitted or explicit null clientCapabilities value cannot be mistaken for an enabled capability.

    ClientProtocolState::equal

    ClientProtocolState::not_equal

    ClientProtocolStep

    pub(all) struct ClientProtocolStep {
    state : ClientProtocolState
    commands : Array[ClientProtocolCommand]
    } derive(Eq,
    Debug
    )

    State and commands produced by one Client reducer step.

    ClientProtocolStep::equal

    ClientProtocolStep::not_equal

    client_protocol_reduce

    fn client_protocol_reduce(state : ClientProtocolState, event : ClientProtocolEvent) -> ClientProtocolStep raise ClientProtocolError

    Reduce one Client protocol event without performing I/O or changing any external task state.

    client_protocol_state_new

    Construct a Client state that has negotiated capability data but is not yet ready to receive Agent business traffic.

    client_protocol_state_ready

    Construct a ready Client state when the caller has already completed the initialize exchange.

    Source Files