pub struct TransactionConflict {
pub name: Vec<u8>,
pub expected: Option<RootManifest>,
pub current: Option<RootManifest>,
}Expand description
Details for a failed transaction validation.
Fields§
§name: Vec<u8>Durable root name that failed validation.
expected: Option<RootManifest>Manifest expected by the transaction.
current: Option<RootManifest>Manifest currently stored by the backend.
Implementations§
Source§impl TransactionConflict
impl TransactionConflict
Sourcepub fn new(
name: Vec<u8>,
expected: Option<RootManifest>,
current: Option<RootManifest>,
) -> Self
pub fn new( name: Vec<u8>, expected: Option<RootManifest>, current: Option<RootManifest>, ) -> Self
Create a conflict record.
Trait Implementations§
Source§impl Clone for TransactionConflict
impl Clone for TransactionConflict
Source§fn clone(&self) -> TransactionConflict
fn clone(&self) -> TransactionConflict
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 Debug for TransactionConflict
impl Debug for TransactionConflict
Source§impl PartialEq for TransactionConflict
impl PartialEq for TransactionConflict
impl StructuralPartialEq for TransactionConflict
Auto Trait Implementations§
impl Freeze for TransactionConflict
impl RefUnwindSafe for TransactionConflict
impl Send for TransactionConflict
impl Sync for TransactionConflict
impl Unpin for TransactionConflict
impl UnsafeUnpin for TransactionConflict
impl UnwindSafe for TransactionConflict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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