pub enum CommandArgumentError {
TypeMismatch,
InvalidBcsBytes,
InvalidUsageOfPureArgument,
InvalidArgumentToPrivateEntryFunction,
IndexOutOfBounds {
index: u16,
},
SecondaryIndexOutOfBounds {
result: u16,
subresult: u16,
},
InvalidResultArity {
result: u16,
},
InvalidGasCoinUsage,
InvalidValueUsage,
InvalidObjectByValue,
InvalidObjectByMutRef,
SharedObjectOperationNotAllowed,
}
Variants§
TypeMismatch
The type of the value does not match the expected type
InvalidBcsBytes
The argument cannot be deserialized into a value of the specified type
InvalidUsageOfPureArgument
The argument cannot be instantiated from raw bytes
InvalidArgumentToPrivateEntryFunction
Invalid argument to private entry function. Private entry functions cannot take arguments from other Move functions.
IndexOutOfBounds
Out of bounds access to input or results
SecondaryIndexOutOfBounds
Out of bounds access to subresult
InvalidResultArity
Invalid usage of result. Expected a single result but found either no return value or multiple.
InvalidGasCoinUsage
Invalid usage of Gas coin. The Gas coin can only be used by-value with a TransferObjects command.
InvalidValueUsage
Invalid usage of move value.
InvalidObjectByValue
Immutable objects cannot be passed by-value.
InvalidObjectByMutRef
Immutable objects cannot be passed by mutable reference, &mut.
Shared object operations such a wrapping, freezing, or converting to owned are not allowed.
Trait Implementations§
source§impl Arbitrary for CommandArgumentError
impl Arbitrary for CommandArgumentError
source§type Parameters = ()
type Parameters = ()
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§type Strategy = BoxedStrategy<CommandArgumentError>
type Strategy = BoxedStrategy<CommandArgumentError>
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Clone for CommandArgumentError
impl Clone for CommandArgumentError
source§fn clone(&self) -> CommandArgumentError
fn clone(&self) -> CommandArgumentError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CommandArgumentError
impl Debug for CommandArgumentError
source§impl<'de> Deserialize<'de> for CommandArgumentError
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for CommandArgumentError
serde
only.source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl PartialEq for CommandArgumentError
impl PartialEq for CommandArgumentError
source§impl Serialize for CommandArgumentError
Available on crate feature serde
only.
impl Serialize for CommandArgumentError
serde
only.impl Eq for CommandArgumentError
impl StructuralPartialEq for CommandArgumentError
Auto Trait Implementations§
impl Freeze for CommandArgumentError
impl RefUnwindSafe for CommandArgumentError
impl Send for CommandArgumentError
impl Sync for CommandArgumentError
impl Unpin for CommandArgumentError
impl UnwindSafe for CommandArgumentError
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)