pub struct NullAgent;Expand description
The default when no agent is configured: Tier 0, and honest about it.
ADR-0003 promises agent-agnosticism, which we keep in the default and not just in the abstraction — no vendor is assumed, and the editor works with none configured.
Trait Implementations§
Source§impl AgentService for NullAgent
impl AgentService for NullAgent
fn integration(&self) -> AgentIntegration
Source§fn send(&mut self, _request: AgentRequest)
fn send(&mut self, _request: AgentRequest)
Queue work for the agent. Never blocks the caller.
Source§fn poll(&mut self) -> Vec<AgentEvent>
fn poll(&mut self) -> Vec<AgentEvent>
Take whatever the agent has produced since the last call. Read more
fn capabilities(&self) -> ClientCapabilities
Auto Trait Implementations§
impl Freeze for NullAgent
impl RefUnwindSafe for NullAgent
impl Send for NullAgent
impl Sync for NullAgent
impl Unpin for NullAgent
impl UnsafeUnpin for NullAgent
impl UnwindSafe for NullAgent
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