pub struct SoftBindingReceiptVerificationSession { /* private fields */ }Expand description
Transport-independent session for the repository’s explicit receipt POST.
The returned result is the repository’s report. This session does not locally prove or cryptographically verify the receipt.
Implementations§
Source§impl SoftBindingReceiptVerificationSession
impl SoftBindingReceiptVerificationSession
pub fn new( service_root: &str, manifest_id: &str, receipt: Json, verify_options: &VerifyOptions, resolver_options: &SoftBindingResolverOptions, ) -> Result<Self, Error>
pub fn next_request(&self) -> Option<SoftBindingFetchRequest<'_>>
pub fn accept_response( &mut self, final_url: &str, bytes: Vec<u8>, ) -> Result<(), Error>
pub fn finish(self) -> Result<SoftBindingReceiptEvidence, Error>
Auto Trait Implementations§
impl Freeze for SoftBindingReceiptVerificationSession
impl RefUnwindSafe for SoftBindingReceiptVerificationSession
impl Send for SoftBindingReceiptVerificationSession
impl Sync for SoftBindingReceiptVerificationSession
impl Unpin for SoftBindingReceiptVerificationSession
impl UnsafeUnpin for SoftBindingReceiptVerificationSession
impl UnwindSafe for SoftBindingReceiptVerificationSession
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