pub struct StdioAuthExtractor { /* private fields */ }
Expand description
Stdio authentication extractor
Implementations§
Source§impl StdioAuthExtractor
impl StdioAuthExtractor
Sourcepub fn new(config: StdioAuthConfig) -> Self
pub fn new(config: StdioAuthConfig) -> Self
Create a new stdio authentication extractor
Trait Implementations§
Source§impl AuthExtractor for StdioAuthExtractor
impl AuthExtractor for StdioAuthExtractor
Source§fn extract_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 TransportRequest,
) -> Pin<Box<dyn Future<Output = AuthExtractionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn extract_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 TransportRequest,
) -> Pin<Box<dyn Future<Output = AuthExtractionResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Extract authentication from a transport request
Source§fn transport_type(&self) -> TransportType
fn transport_type(&self) -> TransportType
Get the transport type this extractor handles
Source§fn can_handle(&self, _request: &TransportRequest) -> bool
fn can_handle(&self, _request: &TransportRequest) -> bool
Check if this extractor can handle the given request
Source§fn validate_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 TransportAuthContext,
) -> Pin<Box<dyn Future<Output = Result<(), TransportAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn validate_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 TransportAuthContext,
) -> Pin<Box<dyn Future<Output = Result<(), TransportAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Validate the extracted authentication (optional hook)
Auto Trait Implementations§
impl Freeze for StdioAuthExtractor
impl RefUnwindSafe for StdioAuthExtractor
impl Send for StdioAuthExtractor
impl Sync for StdioAuthExtractor
impl Unpin for StdioAuthExtractor
impl UnwindSafe for StdioAuthExtractor
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