pub struct RocketJWTAuthFairing<T>{ /* private fields */ }
Implementations§
Source§impl<T> RocketJWTAuthFairing<T>
impl<T> RocketJWTAuthFairing<T>
pub fn new( secret: String, error_handler: impl Fn(AuthError) -> String + Send + Sync + 'static, further_checks: Option<impl Fn(JWToken<T>) -> Result<(), String> + Send + Sync + 'static>, ) -> Self
pub fn new_with_excludes( secret: String, error_handler: impl Fn(AuthError) -> String + Send + Sync + 'static, further_checks: Option<impl Fn(JWToken<T>) -> Result<(), String> + Send + Sync + 'static>, excludes: Vec<&str>, ) -> Self
pub fn new_with_includes( secret: String, error_handler: impl Fn(AuthError) -> String + Send + Sync + 'static, further_checks: Option<impl Fn(JWToken<T>) -> Result<(), String> + Send + Sync + 'static>, includes: Vec<&str>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RocketJWTAuthFairing<T>
impl<T> !RefUnwindSafe for RocketJWTAuthFairing<T>
impl<T> Send for RocketJWTAuthFairing<T>
impl<T> Sync for RocketJWTAuthFairing<T>
impl<T> Unpin for RocketJWTAuthFairing<T>
impl<T> !UnwindSafe for RocketJWTAuthFairing<T>
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