Struct ed25519_zebra::batch::Item
source · [−]pub struct Item { /* 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
sourceimpl Item
impl Item
sourcepub fn verify_single(self) -> Result<(), Error>
pub fn verify_single(self) -> Result<(), Error>
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
VerificationKey::verify
, which requires
borrowing the message data, the Item
type is unlinked from the lifetime of
the message.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more