pub struct VerifyWith<F>(/* private fields */);Expand description
Verification by a closure.
Trait Implementations§
Source§impl<F: Clone> Clone for VerifyWith<F>
impl<F: Clone> Clone for VerifyWith<F>
impl<F: Copy> Copy for VerifyWith<F>
Source§impl<F: Debug> Debug for VerifyWith<F>
impl<F: Debug> Debug for VerifyWith<F>
Source§impl<T, F, Fut> Verifier<T> for VerifyWith<F>where
F: Fn(EffectContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<Verification<T>, EffectFailure>> + Send + 'static,
impl<T, F, Fut> Verifier<T> for VerifyWith<F>where
F: Fn(EffectContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<Verification<T>, EffectFailure>> + Send + 'static,
Source§fn check(&self, ctx: EffectContext) -> Option<VerificationFuture<T>>
fn check(&self, ctx: EffectContext) -> Option<VerificationFuture<T>>
Starts a check, or
None if the effect has no verification.Auto Trait Implementations§
impl<F> Freeze for VerifyWith<F>where
F: Freeze,
impl<F> RefUnwindSafe for VerifyWith<F>where
F: RefUnwindSafe,
impl<F> Send for VerifyWith<F>where
F: Send,
impl<F> Sync for VerifyWith<F>where
F: Sync,
impl<F> Unpin for VerifyWith<F>where
F: Unpin,
impl<F> UnsafeUnpin for VerifyWith<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for VerifyWith<F>where
F: 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