Struct rocket_api_base::RocketBasicAuthFairing [−][src]
pub struct RocketBasicAuthFairing { /* fields omitted */ }
Implementations
impl RocketBasicAuthFairing
[src]
impl RocketBasicAuthFairing
[src]pub fn new(
callback: impl Fn(String, String) -> Result<(), String> + Send + Sync + 'static,
error_handler: impl Fn(AuthError) -> String + Send + Sync + 'static
) -> Self
[src]
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
[src]
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
[src]
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
impl Fairing for RocketBasicAuthFairing
[src]
impl Fairing for RocketBasicAuthFairing
[src]fn on_request(&self, request: &mut Request<'_>, _: &Data)
[src]
fn on_request(&self, request: &mut Request<'_>, _: &Data)
[src]The request callback. Read more
fn on_attach(&self, rocket: Rocket) -> Result<Rocket, Rocket>
[src]
fn on_attach(&self, rocket: Rocket) -> Result<Rocket, Rocket>
[src]The attach callback. Returns Ok
if launch should proceed and Err
if
launch should be aborted. Read more
fn on_response(&self, request: &Request<'_>, response: &mut Response<'_>)
[src]
fn on_response(&self, request: &Request<'_>, response: &mut Response<'_>)
[src]The response callback. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RocketBasicAuthFairing
impl Send for RocketBasicAuthFairing
impl Sync for RocketBasicAuthFairing
impl Unpin for RocketBasicAuthFairing
impl !UnwindSafe for RocketBasicAuthFairing
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,