Struct epic_api::auth::BasicAuthMiddleware [−][src]
pub struct BasicAuthMiddleware { /* fields omitted */ }
Implementations
pub fn new(
api_basic_auth: String,
basic_realm: &'static HeaderValue,
ignore_uri: Option<String>
) -> BasicAuthMiddleware
Trait Implementations
fn call(
&self,
req: Request<Body>,
handlers: Box<dyn Iterator<Item = HandlerObj>>
) -> ResponseFuture
Auto Trait Implementations
impl RefUnwindSafe for BasicAuthMiddleware
impl Send for BasicAuthMiddleware
impl Sync for BasicAuthMiddleware
impl Unpin for BasicAuthMiddleware
impl UnwindSafe for BasicAuthMiddleware
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more
type Output = T
type Output = T
Should always be Self