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