#[repr(u8)]pub enum UpdateMode {
Automatic = 0,
SnapshotBased = 1,
}
Expand description
Describes how to update a worker to a different component version
Variants§
Automatic = 0
Automatic update tries to recover the worker using the new component version and may fail if there is a divergence.
SnapshotBased = 1
Manual, snapshot-based update uses a user-defined implementation of the save-snapshot
interface
to store the worker’s state, and a user-defined implementation of the load-snapshot
interface to
load it into the new version.
Trait Implementations§
Source§impl Clone for UpdateMode
impl Clone for UpdateMode
Source§fn clone(&self) -> UpdateMode
fn clone(&self) -> UpdateMode
Returns a copy of the value. Read more
1.0.0 · 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 UpdateMode
impl Debug for UpdateMode
Source§impl Ord for UpdateMode
impl Ord for UpdateMode
Source§fn cmp(&self, other: &UpdateMode) -> Ordering
fn cmp(&self, other: &UpdateMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UpdateMode
impl PartialEq for UpdateMode
Source§impl PartialOrd for UpdateMode
impl PartialOrd for UpdateMode
impl Copy for UpdateMode
impl Eq for UpdateMode
impl StructuralPartialEq for UpdateMode
Auto Trait Implementations§
impl Freeze for UpdateMode
impl RefUnwindSafe for UpdateMode
impl Send for UpdateMode
impl Sync for UpdateMode
impl Unpin for UpdateMode
impl UnwindSafe for UpdateMode
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