pub struct OAuthHandlerContext {
pub server_name: String,
pub tx: Sender<McpClientEvent>,
}Expand description
Context passed to an OAuthHandlerFactory so the constructed handler can
dispatch user-facing prompts back to the host through the MCP event channel.
Fields§
§server_name: String§tx: Sender<McpClientEvent>Trait Implementations§
Source§impl Clone for OAuthHandlerContext
impl Clone for OAuthHandlerContext
Source§fn clone(&self) -> OAuthHandlerContext
fn clone(&self) -> OAuthHandlerContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OAuthHandlerContext
impl RefUnwindSafe for OAuthHandlerContext
impl Send for OAuthHandlerContext
impl Sync for OAuthHandlerContext
impl Unpin for OAuthHandlerContext
impl UnsafeUnpin for OAuthHandlerContext
impl UnwindSafe for OAuthHandlerContext
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