pub struct RouterResourceReader { /* private fields */ }Expand description
A wrapper that implements ResourceReader for a shared Router.
This allows handlers to read resources from within tool/resource/prompt handlers, enabling cross-component access.
Implementations§
Source§impl RouterResourceReader
impl RouterResourceReader
Sourcepub fn new(router: Arc<Router>, session_state: SessionState) -> Self
pub fn new(router: Arc<Router>, session_state: SessionState) -> Self
Creates a new resource reader with the given router and session state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouterResourceReader
impl !RefUnwindSafe for RouterResourceReader
impl Send for RouterResourceReader
impl Sync for RouterResourceReader
impl Unpin for RouterResourceReader
impl !UnwindSafe for RouterResourceReader
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).