Struct tlsn_prover::http::HttpProver
source · pub struct HttpProver<S: State> { /* private fields */ }
Expand description
An HTTP prover.
Implementations§
source§impl HttpProver<Closed>
impl HttpProver<Closed>
sourcepub fn start_notarize(self) -> HttpProver<Notarize>
pub fn start_notarize(self) -> HttpProver<Notarize>
Starts notarization of the HTTP session.
Used when the TLS verifier is a Notary to transition the prover to the next state where it can generate commitments to the transcript prior to finalization.
source§impl HttpProver<Notarize>
impl HttpProver<Notarize>
sourcepub fn commit_with<C: HttpCommit>(
&mut self,
committer: &mut C,
) -> Result<(), HttpCommitError>
pub fn commit_with<C: HttpCommit>( &mut self, committer: &mut C, ) -> Result<(), HttpCommitError>
Generates commitments to the HTTP session using the provided committer.
sourcepub fn commit(&mut self) -> Result<(), HttpCommitError>
pub fn commit(&mut self) -> Result<(), HttpCommitError>
Generates commitments to the HTTP session using the default committer.
sourcepub async fn finalize(self) -> Result<NotarizedHttpSession, HttpProverError>
pub async fn finalize(self) -> Result<NotarizedHttpSession, HttpProverError>
Finalizes the HTTP session.
Auto Trait Implementations§
impl<S> Freeze for HttpProver<S>where
S: Freeze,
impl<S> RefUnwindSafe for HttpProver<S>where
S: RefUnwindSafe,
impl<S> Send for HttpProver<S>where
S: Send,
impl<S> Sync for HttpProver<S>where
S: Sync,
impl<S> Unpin for HttpProver<S>where
S: Unpin,
impl<S> UnwindSafe for HttpProver<S>where
S: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SpawnCompatExt for T
impl<T> SpawnCompatExt for T
§fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Wrap a reference to the executor in a
Compat
wrapper.§fn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Wrap a mutable reference to the executor in a
Compat
wrapper.§impl<T> SpawnCompatExt for T
impl<T> SpawnCompatExt for T
§fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Wrap a reference to the executor in a
Compat
wrapper.§fn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Wrap a mutable reference to the executor in a
Compat
wrapper.