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

    ClientMessageError

    pub(all) suberror ClientMessageError {
    InvalidParams(method_name~ : String, cause~ :
    ProtocolDecodeError
    )
    UnknownMethod(method_name~ : String)
    WrongDirection(method_name~ : String)
    WrongKind(method_name~ : String)
    } derive(Eq,
    Debug
    )

    Errors raised while mapping a method and params value to the Client-side closed unions above.

    ClientNotification

    Stable v1 notifications delivered to a Client, including the bidirectional JSON-RPC cancellation notification.

    ClientNotification::method_name

    fn ClientNotification::method_name(self : ClientNotification) -> String

    Return the exact wire method represented by an accepted notification.

    ClientRequest

    The complete stable v1 request surface delivered to a Client.

    Every variant contains a protocol-validated payload. The closed union prevents Agent-to-Client dispatch from falling through to an untyped JSON handler.

    ClientRequest::method_name

    fn ClientRequest::method_name(self : ClientRequest) -> String

    Return the exact wire method represented by an accepted request.

    decode_client_notification

    fn decode_client_notification(method_name : String, params : Json?) -> ClientNotification raise ClientMessageError

    Decode one Agent-to-Client notification params value. String, integer, and null cancellation identifiers remain distinct typed RequestId values.

    decode_client_request

    fn decode_client_request(method_name : String, params : Json?) -> ClientRequest raise ClientMessageError

    Decode one Agent-to-Client request params value into the closed request union. Known Client-to-Agent methods and notifications are rejected explicitly rather than being treated as unknown methods.

    Source Files