Skip to main content

After

Enum After 

Source
pub enum After {
    Nothing,
    Vanish,
    GuestBoots,
    MintResizeBackup {
        origin: String,
    },
    BeginSync,
    OnlineIn {
        ms: u64,
    },
    GuestPoweredOff,
    InstallPass {
        left_ms: u64,
    },
    MediumRebooted,
    GuestGone,
    GrowDone,
    Created,
}

Variants§

§

Nothing

§

Vanish

Free the object (the delete completes).

§

GuestBoots

The guest starts running — installer, template first boot, or the disk.

§

MintResizeBackup

The plan change completed; mint the Resize Backup off origin.

Fields

§origin: String
§

BeginSync

The upload finished and the SYNC begins. The import object flips to completed here — with its completed_ms — while the storage enters syncing and stays there for Timings::storage_sync_lo_ms to Timings::storage_sync_hi_ms. Two clocks, one object, and the second one starts only when the first has stopped.

§

OnlineIn

Go online this many ms after arriving. The second leg of a clone’s maintenancesyncingonline, which needs two hops and a transition carries one.

Fields

§ms: u64
§

GuestPoweredOff

The installer powered the box off (behaviour 46). The guest is Installed. The transition carrying this is HELD while a real machine behind the server still runs: the API reports UpCloud’s time, but it never says stopped over a running VM.

§

InstallPass

The installer’s brief started is over; the pass runs in maintenance and ends stopped (via After::GuestPoweredOff) after left_ms more.

Fields

§left_ms: u64
§

MediumRebooted

The rebooting medium’s pass ended (behaviour 69): the guest reboots. The server stays started. The CD still loaded and first → the installer runs again (17) and another pass is scheduled; otherwise the disk boots and the guest is Installed.

§

GuestGone

A real guest powered itself off while the server read started. Noticed poweroff_notice_ms later; the guest is Off.

§

GrowDone

A size grow finished (behaviour 55). Marks the maintenance of a grow, which a filesystem resize may follow at once: 5.44.1 sends POST /storage/{uuid}/resize straight after the PUT, without waiting, against the live account.

§

Created

A fresh POST /storage settling (behaviour 66). Nothing happens on arrival; it marks the create’s maintenance as the one an import may be started in.

Trait Implementations§

Source§

impl Clone for After

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for After

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for After

Source§

impl PartialEq for After

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for After

Auto Trait Implementations§

§

impl Freeze for After

§

impl RefUnwindSafe for After

§

impl Send for After

§

impl Sync for After

§

impl Unpin for After

§

impl UnsafeUnpin for After

§

impl UnwindSafe for After

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.