pub struct UpstreamManager { /* private fields */ }Implementations§
Source§impl UpstreamManager
impl UpstreamManager
pub async fn connect_all(defs: &[UpstreamDef]) -> Result<Arc<Self>>
pub async fn all_tools(&self) -> Vec<Tool>
pub async fn all_resources(&self) -> Vec<Resource>
pub async fn all_prompts(&self) -> Vec<Prompt>
pub async fn forward_tool_call( &self, tool_name: &str, params: CallToolRequestParams, ) -> Result<CallToolResult>
pub async fn forward_read_resource( &self, uri: &str, params: ReadResourceRequestParams, ) -> Result<ReadResourceResult>
pub async fn forward_get_prompt( &self, prompt_name: &str, params: GetPromptRequestParams, ) -> Result<GetPromptResult>
Auto Trait Implementations§
impl !Freeze for UpstreamManager
impl !RefUnwindSafe for UpstreamManager
impl !UnwindSafe for UpstreamManager
impl Send for UpstreamManager
impl Sync for UpstreamManager
impl Unpin for UpstreamManager
impl UnsafeUnpin for UpstreamManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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