pub struct McpClientChannels {
pub notifications: UnboundedReceiver<McpServerNotification>,
pub events: Sender<McpServerEvent>,
}Expand description
Channels paired with an McpClientHandler returned by
McpHandlerConfig::build.
notifications is the legacy mpsc receiver consumed by the catalog refresh
path inside McpServerManager::refresh_changed_catalogs. events is the
broadcast sender that surfaces every McpServerEvent — clone it once and
pass it into McpConnection::from_running_service_with_events when
adopting an externally constructed rmcp::service::RunningService. If the
adopted connection also needs adapter-time hooks from the same
McpHandlerConfig, use
McpConnection::from_running_service_with_events_and_handler_config.
Fields§
§notifications: UnboundedReceiver<McpServerNotification>Legacy mpsc receiver for catalog list-changed announcements.
events: Sender<McpServerEvent>Broadcast sender that forwards every McpServerEvent to subscribers.
Auto Trait Implementations§
impl Freeze for McpClientChannels
impl RefUnwindSafe for McpClientChannels
impl Send for McpClientChannels
impl Sync for McpClientChannels
impl Unpin for McpClientChannels
impl UnsafeUnpin for McpClientChannels
impl UnwindSafe for McpClientChannels
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