Skip to main content

TransactionRolledBack

Struct TransactionRolledBack 

Source
pub struct TransactionRolledBack;
Expand description

Proposition: a transaction was successfully rolled back.

Implementations§

Source§

impl TransactionRolledBack

Source

pub fn elicit_checked_tool_attr() -> Tool

Generated tool metadata function for elicit_checked

Source

pub fn elicit_checked( peer: Peer<RoleServer>, ) -> Pin<Box<dyn Future<Output = Result<Self, ElicitError>> + Send + 'static>>

Checked elicitation via MCP protocol.

This is the verified, registered variant suitable for production use. Uses server-side elicitation to interactively elicit a value from the requesting client via MCP.

Automatically registered as an MCP tool via #[rmcp::tool].

§Examples
// In a tool handler with peer: Peer<RoleServer>
let config = Config::elicit_checked(peer).await?;
§Implementation

Creates an ElicitServer wrapper and delegates to the Elicitation trait. This provides server-side elicitation with the same style system and validation logic as client-side elicitation.

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for TransactionRolledBack

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl ElicitComplete for TransactionRolledBack

Source§

fn validate_proofs_non_empty() -> bool

Runtime check: all three proof methods return non-empty TokenStreams. Read more
Source§

fn kani_proof_contains<Inner>() -> bool
where Inner: Elicitation,

Runtime check: does this type’s Kani proof contain Inner’s Kani proof? Read more
Source§

fn verus_proof_contains<Inner>() -> bool
where Inner: Elicitation,

Runtime check: does this type’s Verus proof contain Inner’s Verus proof?
Source§

fn creusot_proof_contains<Inner>() -> bool
where Inner: Elicitation,

Runtime check: does this type’s Creusot proof contain Inner’s Creusot proof?
Source§

impl ElicitIntrospect for TransactionRolledBack

Source§

fn pattern() -> ElicitationPattern

What elicitation pattern does this type use? Read more
Source§

fn metadata() -> TypeMetadata

Get the complete structural metadata for this type. Read more
Source§

impl ElicitSpec for TransactionRolledBack

Source§

fn type_spec() -> TypeSpec

Returns the complete spec for this type.
Source§

impl Elicitation for TransactionRolledBack

Source§

type Style = TransactionRolledBackStyle

The style enum for this type. Read more
Source§

async fn elicit<C: ElicitCommunicator>(_communicator: &C) -> ElicitResult<Self>

Elicit a value of this type from the user via style-aware client. Read more
Source§

fn kani_proof() -> TokenStream

Generate a Kani symbolic execution proof harness for this type. Read more
Source§

fn verus_proof() -> TokenStream

Returns a proc_macro2::TokenStream containing a Verus-verified function with requires/ensures specifications for this type’s invariants. Read more
Source§

fn creusot_proof() -> TokenStream

Returns a proc_macro2::TokenStream containing Creusot contract functions with #[requires]/#[ensures]/#[trusted] attributes for this type’s invariants. Read more
Source§

fn elicit_checked( peer: Peer<RoleServer>, ) -> impl Future<Output = Result<Self, ElicitError>> + Send

Server-side elicitation via MCP peer. Read more
Source§

fn with_style(style: Self::Style) -> ElicitBuilder<Self>

Create a builder for one-off style override. Read more
Source§

fn elicit_proven<C>( communicator: &C, ) -> impl Future<Output = Result<(Self, Established<Is<Self>>), ElicitError>> + Send

Elicit a value with proof it inhabits type Self. Read more
Source§

fn prusti_proof() -> TokenStream

Returns a proc_macro2::TokenStream containing Prusti contract functions with #[requires]/#[ensures] attributes for this type’s invariants. Read more
Source§

impl JsonSchema for TransactionRolledBack

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl Prompt for TransactionRolledBack

Source§

fn prompt() -> Option<&'static str>

Optional prompt to guide user interaction. Read more
Source§

impl Prop for TransactionRolledBack

Source§

fn kani_proof() -> TokenStream

Generate a Kani proof harness for this proposition. Read more
Source§

fn verus_proof() -> TokenStream

Generate a Verus proof for this proposition. Read more
Source§

fn creusot_proof() -> TokenStream

Generate a Creusot contract proof for this proposition. Read more
Source§

impl Serialize for TransactionRolledBack

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Survey for TransactionRolledBack

Source§

fn fields() -> Vec<FieldInfo>

Field metadata for survey construction. Read more
Source§

impl ToCodeLiteral for TransactionRolledBack

Source§

fn to_code_literal(&self) -> TokenStream

Return a TokenStream containing a single Rust expression whose evaluation produces a value equal to self.
Source§

fn type_tokens() -> TokenStream

Token stream for the concrete type name (used to annotate None::<T>). Read more
Source§

impl VerifiedWorkflow for TransactionRolledBack

Source§

fn validate_proofs_non_empty() -> bool

Runtime check: all three proof methods return non-empty TokenStreams. Read more
Source§

fn kani_proof_contains<Inner>() -> bool
where Inner: Prop,

Runtime check: does this proposition’s Kani proof contain Inner’s? Read more
Source§

fn verus_proof_contains<Inner>() -> bool
where Inner: Prop,

Runtime check: does this proposition’s Verus proof contain Inner’s?
Source§

fn creusot_proof_contains<Inner>() -> bool
where Inner: Prop,

Runtime check: does this proposition’s Creusot proof contain Inner’s?

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ElicitJson for T
where T: JsonSchema + DeserializeOwned + Send + 'static,

Source§

async fn elicit_json<C>(communicator: &C) -> Result<T, ElicitError>

Elicit a value by presenting the JSON schema and parsing the response.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToSqlxArgs for T

Source§

fn to_sqlx_args(&self) -> Vec<Value>

Serialize self into ordered positional SQL argument values.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<P> Implies<P> for P
where P: Prop,

Source§

impl<T> Refines<T> for T
where T: 'static,