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.

Implementations on Foreign Types§

Source§

impl ToolPortServiceExt for dyn ToolPort

Implementors§

Source§

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