Struct stack_test_epic_api::auth::BasicAuthURIMiddleware
source · [−]pub struct BasicAuthURIMiddleware { /* private fields */ }
Implementations
sourceimpl BasicAuthURIMiddleware
impl BasicAuthURIMiddleware
pub fn new(
api_basic_auth: String,
basic_realm: &'static HeaderValue,
target_uri: String
) -> BasicAuthURIMiddleware
Trait Implementations
sourceimpl Handler for BasicAuthURIMiddleware
impl Handler for BasicAuthURIMiddleware
fn call(
&self,
req: Request<Body>,
handlers: Box<dyn Iterator<Item = HandlerObj>>
) -> ResponseFuture
fn get(&self, _req: Request<Body>) -> ResponseFuture
fn post(&self, _req: Request<Body>) -> ResponseFuture
fn put(&self, _req: Request<Body>) -> ResponseFuture
fn patch(&self, _req: Request<Body>) -> ResponseFuture
fn delete(&self, _req: Request<Body>) -> ResponseFuture
fn head(&self, _req: Request<Body>) -> ResponseFuture
fn options(&self, _req: Request<Body>) -> ResponseFuture
fn trace(&self, _req: Request<Body>) -> ResponseFuture
fn connect(&self, _req: Request<Body>) -> ResponseFuture
Auto Trait Implementations
impl RefUnwindSafe for BasicAuthURIMiddleware
impl Send for BasicAuthURIMiddleware
impl Sync for BasicAuthURIMiddleware
impl Unpin for BasicAuthURIMiddleware
impl UnwindSafe for BasicAuthURIMiddleware
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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,
fn borrow_replacement(ptr: &T) -> &T
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