pub struct ErasedVerifier<V>(pub V);Expand description
Adapter wrapping any concrete ProofVerifier as a
DynProofVerifier. Produced by erase_verifier.
Tuple Fields§
§0: VTrait Implementations§
Source§impl<V> DynProofVerifier for ErasedVerifier<V>
impl<V> DynProofVerifier for ErasedVerifier<V>
Source§fn verify_json<'life0, 'life1, 'async_trait>(
&'life0 self,
doc: &'life1 TrustTask<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), VerificationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ErasedVerifier<V>: 'async_trait,
fn verify_json<'life0, 'life1, 'async_trait>(
&'life0 self,
doc: &'life1 TrustTask<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), VerificationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ErasedVerifier<V>: 'async_trait,
Verify
doc.proof over the JSON-form document.Auto Trait Implementations§
impl<V> Freeze for ErasedVerifier<V>where
V: Freeze,
impl<V> RefUnwindSafe for ErasedVerifier<V>where
V: RefUnwindSafe,
impl<V> Send for ErasedVerifier<V>where
V: Send,
impl<V> Sync for ErasedVerifier<V>where
V: Sync,
impl<V> Unpin for ErasedVerifier<V>where
V: Unpin,
impl<V> UnsafeUnpin for ErasedVerifier<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for ErasedVerifier<V>where
V: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.