pub struct AgentSide;Expand description
Marker type representing the agent side of an ACP connection.
This type is used by the RPC layer to determine which messages are incoming vs outgoing from the agent’s perspective.
See protocol docs: Communication Model
Trait Implementations§
Source§impl JsonSchema for AgentSide
impl JsonSchema for AgentSide
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Side for AgentSide
impl Side for AgentSide
type InRequest = ClientRequest
type InNotification = ClientNotification
type OutResponse = AgentResponse
fn decode_request( method: &str, params: Option<&RawValue>, ) -> Result<ClientRequest>
fn decode_notification( method: &str, params: Option<&RawValue>, ) -> Result<ClientNotification>
Auto Trait Implementations§
impl Freeze for AgentSide
impl RefUnwindSafe for AgentSide
impl Send for AgentSide
impl Sync for AgentSide
impl Unpin for AgentSide
impl UnwindSafe for AgentSide
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more