pub struct OAuthHandlerContext {
pub server_name: String,
pub callback_port: Option<NonZeroU16>,
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§callback_port: Option<NonZeroU16>§tx: Sender<McpClientEvent>Trait Implementations§
Auto 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