#[non_exhaustive]#[repr(i32)]pub enum DbConflictResult {
kDbDiagnosticNone = 0,
kDbDiagnosticFirst {
first: DbConflictDiagnostic,
},
kDbDiagnosticAll {
conflicts: VecM<DbConflictDiagnostic>,
},
}Expand description
Conflict diagnostics attached to a failed try_push_new_subtransaction. The discriminant is the DbDiagnosticLevel the database selected from the block’s execution mode, so the variable-length arm is only ever constructed in kDbDiagnosticAll mode (debug-build proposals); prod levels are allocation-free by construction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
kDbDiagnosticNone = 0
kDbDiagnosticFirst
Fields
§
first: DbConflictDiagnostickDbDiagnosticAll
Fields
§
conflicts: VecM<DbConflictDiagnostic>Implementations§
Source§impl DbConflictResult
impl DbConflictResult
pub fn level(&self) -> DbDiagnosticLevel
Trait Implementations§
Source§impl Clone for DbConflictResult
impl Clone for DbConflictResult
Source§fn clone(&self) -> DbConflictResult
fn clone(&self) -> DbConflictResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstMaxSize for DbConflictResult
impl ConstMaxSize for DbConflictResult
Source§impl ConstMaxSize for DbConflictResult
impl ConstMaxSize for DbConflictResult
Source§impl Debug for DbConflictResult
impl Debug for DbConflictResult
impl EncodesAs<DbConflictResult> for DbConflictResult
impl Eq for DbConflictResult
Source§impl Hash for DbConflictResult
impl Hash for DbConflictResult
Source§impl JsonSchema for DbConflictResult
impl JsonSchema for DbConflictResult
Source§fn schema_id() -> Cow<'static, str>
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
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
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 moreSource§impl Ord for DbConflictResult
impl Ord for DbConflictResult
Source§fn cmp(&self, other: &DbConflictResult) -> Ordering
fn cmp(&self, other: &DbConflictResult) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DbConflictResult
impl PartialEq for DbConflictResult
Source§impl PartialOrd for DbConflictResult
impl PartialOrd for DbConflictResult
Source§impl<'_r> ReadXDR<'_r> for DbConflictResult
impl<'_r> ReadXDR<'_r> for DbConflictResult
impl StructuralPartialEq for DbConflictResult
Source§impl WriteXDR for DbConflictResult
impl WriteXDR for DbConflictResult
Source§fn write_xdr<F, W>(&self, __write_xdr_writer: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
fn write_xdr<F, W>(&self, __write_xdr_writer: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W>(&self, __write_xdr_writer: &mut W)where
W: WriterUnchecked<F>,
unsafe fn write_xdr_unchecked<F, W>(&self, __write_xdr_writer: &mut W)where
W: WriterUnchecked<F>,
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl Freeze for DbConflictResult
impl RefUnwindSafe for DbConflictResult
impl Send for DbConflictResult
impl Sync for DbConflictResult
impl Unpin for DbConflictResult
impl UnsafeUnpin for DbConflictResult
impl UnwindSafe for DbConflictResult
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