Skip to main content

ToolPortServiceExt

Trait ToolPortServiceExt 

Source
pub trait ToolPortServiceExt: ToolPort {
    // Required methods
    fn into_tool_service(self: Arc<Self>) -> ToolService;
    fn into_tool_list_service(self: Arc<Self>) -> ToolListService;
}
Expand description

Extension trait that converts a ToolPort into tower services.

This provides a fluent API for creating service instances from tool ports.

Required Methods§

Source

fn into_tool_service(self: Arc<Self>) -> ToolService

Convert this tool port into a tower::Service for tool execution.

Source

fn into_tool_list_service(self: Arc<Self>) -> ToolListService

Convert this tool port into a tower::Service for tool listing.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToolPortServiceExt for dyn ToolPort

Implementors§

Source§

impl<T: ToolPort + 'static> ToolPortServiceExt for T