pub struct Item<C: Ciphersuite> { /* private fields */ }
Expand description
A batch verification item.
This struct exists to allow batch processing to be decoupled from the lifetime of the message. This is useful when using the batch verification API in an async context.
Implementations§
Source§impl<C> Item<C>where
C: Ciphersuite,
impl<C> Item<C>where
C: Ciphersuite,
Source§impl<C> Item<C>where
C: Ciphersuite,
impl<C> Item<C>where
C: Ciphersuite,
Sourcepub fn verify_single(self) -> Result<(), Error<C>>
pub fn verify_single(self) -> Result<(), Error<C>>
Perform non-batched verification of this Item
.
This is useful (in combination with Item::clone
) for implementing
fallback logic when batch verification fails. In contrast to
VerifyingKey::verify
, which
requires borrowing the message data, the Item
type is unlinked
from the lifetime of the message.
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Item<C>
impl<C> RefUnwindSafe for Item<C>where
<<C as Ciphersuite>::Group as Group>::Element: RefUnwindSafe,
<<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: RefUnwindSafe,
impl<C> Send for Item<C>
impl<C> Sync for Item<C>
impl<C> Unpin for Item<C>
impl<C> UnwindSafe for Item<C>where
<<C as Ciphersuite>::Group as Group>::Element: UnwindSafe,
<<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: 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