pub struct ClientSide;Expand description
Marker type representing the client side of an ACP connection.
This type is used by the RPC layer to determine which messages are incoming vs outgoing from the client’s perspective.
See protocol docs: Communication Model
Trait Implementations§
Source§impl Clone for ClientSide
impl Clone for ClientSide
Source§fn clone(&self) -> ClientSide
fn clone(&self) -> ClientSide
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl JsonSchema for ClientSide
impl JsonSchema for ClientSide
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 ClientSide
impl Side for ClientSide
type InRequest = AgentRequest
type InNotification = AgentNotification
type OutResponse = ClientResponse
fn decode_request( method: &str, params: Option<&RawValue>, ) -> Result<AgentRequest>
fn decode_notification( method: &str, params: Option<&RawValue>, ) -> Result<AgentNotification>
Auto Trait Implementations§
impl Freeze for ClientSide
impl RefUnwindSafe for ClientSide
impl Send for ClientSide
impl Sync for ClientSide
impl Unpin for ClientSide
impl UnwindSafe for ClientSide
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