pub struct FakeAgent { /* private fields */ }Implementations§
Source§impl FakeAgent
impl FakeAgent
pub fn remote_server(self, info: &RemoteServerInfo) -> Self
pub fn session_preview(self, preview: SessionPreviewResponse) -> Self
pub fn agent_info(self, info: Implementation) -> Self
pub fn capabilities(self, capabilities: AgentCapabilities) -> Self
pub fn login_method(self, method: &str) -> Self
pub fn hold_config(self, hold: bool) -> Self
pub fn hold_list_sessions(self, hold: bool) -> Self
pub fn new_session_response(self, response: NewSessionResponse) -> Self
pub fn sessions(self, sessions: Vec<SessionInfo>) -> Self
pub fn replay_message(self, session_id: &str, text: &str) -> Self
pub fn live_message(self, session_id: &str, text: &str) -> Self
pub fn compaction( self, session_id: &str, compaction_id: &str, status: CompactionStatus, ) -> Self
pub fn capture(self) -> (Self, FakeAgentRequests)
pub fn agent(self) -> V2Builder<Agent, impl HandleDispatchFrom<Client>, NullRun>
pub async fn build(self) -> Result<AcpClient, AcpClientError>
Trait Implementations§
Source§impl HandleDispatchFrom<Client> for FakeAgent
impl HandleDispatchFrom<Client> for FakeAgent
Source§async fn handle_dispatch_from(
&mut self,
message: Dispatch,
cx: ConnectionTo<Client>,
) -> Result<Handled<Dispatch>, Error>
async fn handle_dispatch_from( &mut self, message: Dispatch, cx: ConnectionTo<Client>, ) -> Result<Handled<Dispatch>, Error>
Attempt to claim an incoming dispatch (request, notification, or response). Read more
Source§fn describe_chain(&self) -> impl Debug
fn describe_chain(&self) -> impl Debug
Returns a debug description of the registered handlers for diagnostics.
Auto Trait Implementations§
impl Freeze for FakeAgent
impl RefUnwindSafe for FakeAgent
impl Send for FakeAgent
impl Sync for FakeAgent
impl Unpin for FakeAgent
impl UnsafeUnpin for FakeAgent
impl UnwindSafe for FakeAgent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.