#[repr(i32)]pub enum LandStackOutcome {
Unspecified = 0,
Committed = 1,
RolledBack = 2,
}Variants§
Unspecified = 0
Committed = 1
Every requested member was durably landed in one atomic commit.
RolledBack = 2
No requested member was durably landed. This includes a gate abort and a rollback after an apply failure.
Implementations§
Source§impl LandStackOutcome
impl LandStackOutcome
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of LandStackOutcome.
Sourcepub fn from_i32(value: i32) -> Option<LandStackOutcome>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<LandStackOutcome>
Use the TryFrom<i32> implementation instead
Converts an i32 to a LandStackOutcome, or None if value is not a valid variant.
Source§impl LandStackOutcome
impl LandStackOutcome
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for LandStackOutcome
impl Clone for LandStackOutcome
Source§fn clone(&self) -> LandStackOutcome
fn clone(&self) -> LandStackOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LandStackOutcome
Source§impl Debug for LandStackOutcome
impl Debug for LandStackOutcome
Source§impl Default for LandStackOutcome
impl Default for LandStackOutcome
Source§fn default() -> LandStackOutcome
fn default() -> LandStackOutcome
Returns the “default value” for a type. Read more
impl Eq for LandStackOutcome
Source§impl From<LandStackOutcome> for i32
impl From<LandStackOutcome> for i32
Source§fn from(value: LandStackOutcome) -> i32
fn from(value: LandStackOutcome) -> i32
Converts to this type from the input type.
Source§impl Hash for LandStackOutcome
impl Hash for LandStackOutcome
Source§impl Ord for LandStackOutcome
impl Ord for LandStackOutcome
Source§fn cmp(&self, other: &LandStackOutcome) -> Ordering
fn cmp(&self, other: &LandStackOutcome) -> Ordering
1.21.0 (const: unstable) · 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 LandStackOutcome
impl PartialEq for LandStackOutcome
Source§impl PartialOrd for LandStackOutcome
impl PartialOrd for LandStackOutcome
impl StructuralPartialEq for LandStackOutcome
Source§impl TryFrom<i32> for LandStackOutcome
impl TryFrom<i32> for LandStackOutcome
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<LandStackOutcome, UnknownEnumValue>
fn try_from(value: i32) -> Result<LandStackOutcome, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LandStackOutcome
impl RefUnwindSafe for LandStackOutcome
impl Send for LandStackOutcome
impl Sync for LandStackOutcome
impl Unpin for LandStackOutcome
impl UnsafeUnpin for LandStackOutcome
impl UnwindSafe for LandStackOutcome
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