pub struct McpAuthClient { /* private fields */ }Implementations§
Source§impl McpAuthClient
impl McpAuthClient
pub fn new(options: McpAuthClientOptions) -> Self
pub async fn verify_token( &self, token: &str, ) -> Result<Option<McpSession>, Error>
pub async fn discovery_metadata(&self) -> Result<Value, Error>
pub fn protected_resource_metadata(&self, server_url: &str) -> Value
pub fn www_authenticate(&self) -> String
pub fn cors_preflight_response(&self) -> Result<Response<Vec<u8>>, Error>
pub fn bearer_token<B>(&self, request: &Request<B>) -> Option<String>
pub async fn handle_request<F, Fut>( &self, request: Request<Vec<u8>>, handler: F, ) -> Result<Response<Vec<u8>>, McpClientError>
Trait Implementations§
Source§impl Clone for McpAuthClient
impl Clone for McpAuthClient
Source§fn clone(&self) -> McpAuthClient
fn clone(&self) -> McpAuthClient
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 McpAuthClient
impl !RefUnwindSafe for McpAuthClient
impl Send for McpAuthClient
impl Sync for McpAuthClient
impl Unpin for McpAuthClient
impl UnsafeUnpin for McpAuthClient
impl !UnwindSafe for McpAuthClient
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