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
impl 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
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