pub struct AcpRequestContext {
pub protocol_version: AcpProtocolVersion,
}Expand description
The per-request context the ACP handler receives.
Carries the negotiated protocol version (so the handler can decode per-revision params against it) and the auth context (so a handler that needs to check identity has it without re-parsing the wire envelope). Future fields land here as the protocol grows: the request id, the request deadline, the session id extracted from the params (where it is always present), the cancellation handle for the in-flight prompt.
Fields§
§protocol_version: AcpProtocolVersionThe negotiated ACP protocol version. The handler is responsible for decoding params against this version’s wire shape.
Trait Implementations§
Source§impl Clone for AcpRequestContext
impl Clone for AcpRequestContext
Auto Trait Implementations§
impl Freeze for AcpRequestContext
impl RefUnwindSafe for AcpRequestContext
impl Send for AcpRequestContext
impl Sync for AcpRequestContext
impl Unpin for AcpRequestContext
impl UnsafeUnpin for AcpRequestContext
impl UnwindSafe for AcpRequestContext
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