pub struct RouterActor { /* private fields */ }
Implementations§
Source§impl RouterActor
impl RouterActor
pub async fn list_tools(&self) -> Vec<Tool>
pub async fn call_tool( &self, tool_name: &str, arguments: Value, ) -> Result<CallToolResult, ToolError>
pub async fn list_resources(&self) -> Vec<Resource>
pub async fn read_resource( &self, uri: &str, ) -> Result<ReadResourceResult, ResourceError>
pub async fn list_prompts(&self) -> Vec<Prompt>
pub async fn get_prompt( &self, prompt_name: &str, ) -> Result<GetPromptResult, ResourceError>
Trait Implementations§
Source§impl Actor for RouterActor
impl Actor for RouterActor
Source§type Context = Context<RouterActor>
type Context = Context<RouterActor>
Actor execution context type
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
Source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping
state. Read moreSource§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Source§impl Handler<TransportRequest> for RouterActor
impl Handler<TransportRequest> for RouterActor
Source§type Result = Pin<Box<dyn Future<Output = Result<JsonRpcResponse, JsonRpcError>>>>
type Result = Pin<Box<dyn Future<Output = Result<JsonRpcResponse, JsonRpcError>>>>
The type of value that this handler will return. Read more
Auto Trait Implementations§
impl Freeze for RouterActor
impl !RefUnwindSafe for RouterActor
impl Send for RouterActor
impl Sync for RouterActor
impl Unpin for RouterActor
impl !UnwindSafe for RouterActor
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more