pub struct DeleteImageResponseWire {
pub image_identifier: String,
pub state: String,
}Expand description
DeleteMicrovmImageOutput.
§Kept and read, rather than deleted as dead
This struct was parsed nowhere: try_delete_image discarded the reply, so the shape
existed and no code could observe drift in it. The choice was to delete it or to read
it, and reading it wins on one specific case — a 2xx whose state is a *_FAILED
spelling. That is the service accepting the delete request and refusing the work, and
without the readback it is indistinguishable from a successful delete: delete_image
answers true, teardown reports clean, and an image keeps billing. This project has
had exactly that failure once already, in tools/verify-clean.py, which is why the
account is now asked what leaked rather than trusted to have been cleaned.
DELETING and DELETED are both success and the call site treats them alike. The
deletion is asynchronous, so DELETING is the ordinary answer; treating it as
incomplete would make the retry loop re-issue a delete that is already in progress and
then report failure on the ConflictException that comes back.
Fields§
§image_identifier: String§state: StringTrait Implementations§
Source§impl Clone for DeleteImageResponseWire
impl Clone for DeleteImageResponseWire
Source§fn clone(&self) -> DeleteImageResponseWire
fn clone(&self) -> DeleteImageResponseWire
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeleteImageResponseWire
impl Debug for DeleteImageResponseWire
Source§impl<'de> Deserialize<'de> for DeleteImageResponseWire
impl<'de> Deserialize<'de> for DeleteImageResponseWire
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeleteImageResponseWire, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeleteImageResponseWire, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for DeleteImageResponseWire
impl RefUnwindSafe for DeleteImageResponseWire
impl Send for DeleteImageResponseWire
impl Sync for DeleteImageResponseWire
impl Unpin for DeleteImageResponseWire
impl UnsafeUnpin for DeleteImageResponseWire
impl UnwindSafe for DeleteImageResponseWire
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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