pub struct Verify;Expand description
Checks credentials using response status. HTTP 401/403 indicate invalid authentication; status-only decoders do not interpret the response body.
Trait Implementations§
impl Copy for Verify
Source§impl<'id> Decoder<'id, Verify> for VerifyDecoder
impl<'id> Decoder<'id, Verify> for VerifyDecoder
Source§fn eof(&mut self, out: Out<'id, Verify>) -> Result<Flow, ProviderError>
fn eof(&mut self, out: Out<'id, Verify>) -> Result<Flow, ProviderError>
A 2xx with an empty body still verifies: the driver only reaches EOF when nothing framed, and the status already said yes.
Source§fn classify(
&self,
_frame: WireFrame,
) -> WireEvent<<VerifyDecoder as Decoder<'id, Verify>>::Event>
fn classify( &self, _frame: WireFrame, ) -> WireEvent<<VerifyDecoder as Decoder<'id, Verify>>::Event>
Decode and classify one frame. A JSON wire MUST delegate to a
classifier in
crate::providers::internal::wire, so the
decode-then-validate policy is not re-derived per provider.Source§impl<'id> Decoder<'id, Verify> for VerifyKeyDecoder
impl<'id> Decoder<'id, Verify> for VerifyKeyDecoder
Source§fn eof(&mut self, out: Out<'id, Verify>) -> Result<Flow, ProviderError>
fn eof(&mut self, out: Out<'id, Verify>) -> Result<Flow, ProviderError>
A success status verifies even when no recognized page arrived.
Source§fn classify(
&self,
frame: WireFrame,
) -> WireEvent<<VerifyKeyDecoder as Decoder<'id, Verify>>::Event>
fn classify( &self, frame: WireFrame, ) -> WireEvent<<VerifyKeyDecoder as Decoder<'id, Verify>>::Event>
Decode and classify one frame. A JSON wire MUST delegate to a
classifier in
crate::providers::internal::wire, so the
decode-then-validate policy is not re-derived per provider.impl Eq for Verify
Source§impl Operation for Verify
impl Operation for Verify
Source§type End = ()
type End = ()
What the provider sends when it ends the reply. A fold needs one to
produce a response, so a reply that stopped early has none.
Source§type Fold = Whole<Verify>
type Fold = Whole<Verify>
One reply’s state: it absorbs the events the consumer sees, then
folds them with the end into the response.
Source§fn fold(
_request: &<Verify as Operation>::Request,
_call: &mut Call<'_>,
) -> <Verify as Operation>::Fold
fn fold( _request: &<Verify as Operation>::Request, _call: &mut Call<'_>, ) -> <Verify as Operation>::Fold
The state for one reply to
request, before its first frame. The
call says who answers and in which mode; an operation that records
telemetry opens its span here and hands it to
Call::instrument.Source§fn prepare(
request: Self::Request,
wire: &Descriptor<'_>,
) -> Result<Self::Request, ProviderError>
fn prepare( request: Self::Request, wire: &Descriptor<'_>, ) -> Result<Self::Request, ProviderError>
Shape
request for the wire wire describes, or reject a request
no provider of this operation can answer. The driver calls it before
the request is encoded, so a rejected request reaches no wire or
transport. Passes every request through by default.impl StructuralPartialEq for Verify
Auto Trait Implementations§
impl Freeze for Verify
impl RefUnwindSafe for Verify
impl Send for Verify
impl Sync for Verify
impl Unpin for Verify
impl UnsafeUnpin for Verify
impl UnwindSafe for Verify
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.