pub struct InstanceState {
pub code: Option<i64>,
pub name: Option<String>,
}
Expand description
Describes the current state of an instance.
Fields§
§code: Option<i64>
The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
-
0
:pending
-
16
:running
-
32
:shutting-down
-
48
:terminated
-
64
:stopping
-
80
:stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
name: Option<String>
The current state of the instance.
Trait Implementations§
Source§impl Clone for InstanceState
impl Clone for InstanceState
Source§fn clone(&self) -> InstanceState
fn clone(&self) -> InstanceState
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 InstanceState
impl Debug for InstanceState
Source§impl Default for InstanceState
impl Default for InstanceState
Source§fn default() -> InstanceState
fn default() -> InstanceState
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstanceState
impl PartialEq for InstanceState
impl StructuralPartialEq for InstanceState
Auto Trait Implementations§
impl Freeze for InstanceState
impl RefUnwindSafe for InstanceState
impl Send for InstanceState
impl Sync for InstanceState
impl Unpin for InstanceState
impl UnwindSafe for InstanceState
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