pub struct NoopToolEventPublisher;Expand description
Default publisher used by the SDK, server, and tests unless explicitly injected. It preserves historical behavior and allocations at the sink.
Trait Implementations§
Source§impl Clone for NoopToolEventPublisher
impl Clone for NoopToolEventPublisher
Source§fn clone(&self) -> NoopToolEventPublisher
fn clone(&self) -> NoopToolEventPublisher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoopToolEventPublisher
Source§impl Debug for NoopToolEventPublisher
impl Debug for NoopToolEventPublisher
Source§impl Default for NoopToolEventPublisher
impl Default for NoopToolEventPublisher
Source§fn default() -> NoopToolEventPublisher
fn default() -> NoopToolEventPublisher
Returns the “default value” for a type. Read more
Source§impl ToolEventPublisher for NoopToolEventPublisher
impl ToolEventPublisher for NoopToolEventPublisher
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Fast capability hint so the default no-op path performs no event DTO
allocation. Implementations should keep the default
true.fn try_publish(&self, _event: ToolEventV1) -> Result<(), ToolEventPublishError>
Auto Trait Implementations§
impl Freeze for NoopToolEventPublisher
impl RefUnwindSafe for NoopToolEventPublisher
impl Send for NoopToolEventPublisher
impl Sync for NoopToolEventPublisher
impl Unpin for NoopToolEventPublisher
impl UnsafeUnpin for NoopToolEventPublisher
impl UnwindSafe for NoopToolEventPublisher
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