Enum diem_sdk::types::vm_status::AbortLocation
pub enum AbortLocation {
Module(ModuleId),
Script,
}
Expand description
An AbortLocation
specifies where a Move program abort
occurred, either in a function in
a module, or in a script
Variants§
Module(ModuleId)
Indicates abort
occurred in the specified module
Script
Indicates the abort
occurred in a script
Trait Implementations§
§impl Arbitrary for AbortLocation
impl Arbitrary for AbortLocation
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<Map<<ModuleId as Arbitrary>::Strategy, fn(_: ModuleId) -> AbortLocation>>), (u32, Arc<fn() -> AbortLocation>))>
type Strategy = TupleUnion<((u32, Arc<Map<<ModuleId as Arbitrary>::Strategy, fn(_: ModuleId) -> AbortLocation>>), (u32, Arc<fn() -> AbortLocation>))>
The type of
Strategy
used to generate values of type Self
.§fn arbitrary_with(
_top: <AbortLocation as Arbitrary>::Parameters
) -> <AbortLocation as Arbitrary>::Strategy
fn arbitrary_with( _top: <AbortLocation as Arbitrary>::Parameters ) -> <AbortLocation as Arbitrary>::Strategy
§impl Clone for AbortLocation
impl Clone for AbortLocation
§fn clone(&self) -> AbortLocation
fn clone(&self) -> AbortLocation
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 more§impl Debug for AbortLocation
impl Debug for AbortLocation
§impl<'de> Deserialize<'de> for AbortLocation
impl<'de> Deserialize<'de> for AbortLocation
§fn deserialize<__D>(
__deserializer: __D
) -> Result<AbortLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AbortLocation, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for AbortLocation
impl Display for AbortLocation
§impl Hash for AbortLocation
impl Hash for AbortLocation
§impl Ord for AbortLocation
impl Ord for AbortLocation
§impl PartialEq<AbortLocation> for AbortLocation
impl PartialEq<AbortLocation> for AbortLocation
§fn eq(&self, other: &AbortLocation) -> bool
fn eq(&self, other: &AbortLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<AbortLocation> for AbortLocation
impl PartialOrd<AbortLocation> for AbortLocation
§fn partial_cmp(&self, other: &AbortLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &AbortLocation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl Serialize for AbortLocation
impl Serialize for AbortLocation
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AbortLocation
impl StructuralEq for AbortLocation
impl StructuralPartialEq for AbortLocation
Auto Trait Implementations§
impl RefUnwindSafe for AbortLocation
impl Send for AbortLocation
impl Sync for AbortLocation
impl Unpin for AbortLocation
impl UnwindSafe for AbortLocation
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.