pub enum AcpMethod {
Agent(AgentMethod),
Client(ClientMethod),
Protocol(ProtocolMethod),
}Expand description
A method on the ACP wire. Carries the direction (agent-side or client-side) and the slash-separated wire name.
The wire form is the JSON-RPC 2.0 method field, not a
path. The slash is part of the name.
Variants§
Agent(AgentMethod)
A method the editor (client) calls on the agent.
An agent that supports a method answers the call.
The wire name is the slash-separated form from
meta.json::agentMethods.
Client(ClientMethod)
A method the agent calls on the editor (client).
An editor that supports a method answers the call.
The wire name is the slash-separated form from
meta.json::clientMethods.
Protocol(ProtocolMethod)
A JSON-RPC standard method, prefixed $/. Only
$/cancel_request is named in the v1 schema.
Implementations§
Trait Implementations§
impl Copy for AcpMethod
Source§impl<'de> Deserialize<'de> for AcpMethod
impl<'de> Deserialize<'de> for AcpMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AcpMethod
impl StructuralPartialEq for AcpMethod
Auto Trait Implementations§
impl Freeze for AcpMethod
impl RefUnwindSafe for AcpMethod
impl Send for AcpMethod
impl Sync for AcpMethod
impl Unpin for AcpMethod
impl UnsafeUnpin for AcpMethod
impl UnwindSafe for AcpMethod
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