Struct grin_api::auth::BasicAuthURIMiddleware [−][src]
pub struct BasicAuthURIMiddleware { /* fields omitted */ }
Implementations
pub fn new(
api_basic_auth: String,
basic_realm: &'static HeaderValue,
target_uri: String
) -> BasicAuthURIMiddleware
[src]Trait Implementations
fn call(
&self,
req: Request<Body>,
handlers: Box<dyn Iterator<Item = HandlerObj>>
) -> ResponseFuture
[src]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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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