pub enum OwnershipViolation {
UnknownResource {
id: ResourceId,
expected: ResourceKind,
},
KindMismatch {
id: ResourceId,
expected: ResourceKind,
actual: ResourceKind,
},
ResourceNotLive {
id: ResourceId,
kind: ResourceKind,
state: ResourceState,
},
PrematureRelease {
id: ResourceId,
kind: ResourceKind,
retained_by: ResourceId,
},
RollbackFailed {
id: ResourceId,
kind: ResourceKind,
error: BackendError,
},
}Expand description
Ownership-contract violation detected by the harness.
Variants§
Trait Implementations§
Source§impl Clone for OwnershipViolation
impl Clone for OwnershipViolation
Source§fn clone(&self) -> OwnershipViolation
fn clone(&self) -> OwnershipViolation
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 moreimpl Copy for OwnershipViolation
Source§impl Debug for OwnershipViolation
impl Debug for OwnershipViolation
impl Eq for OwnershipViolation
Source§impl PartialEq for OwnershipViolation
impl PartialEq for OwnershipViolation
Source§fn eq(&self, other: &OwnershipViolation) -> bool
fn eq(&self, other: &OwnershipViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OwnershipViolation
Auto Trait Implementations§
impl Freeze for OwnershipViolation
impl RefUnwindSafe for OwnershipViolation
impl Send for OwnershipViolation
impl Sync for OwnershipViolation
impl Unpin for OwnershipViolation
impl UnsafeUnpin for OwnershipViolation
impl UnwindSafe for OwnershipViolation
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