Enum gstd::errors::UsageError
source · pub enum UsageError {
EmptyWaitDuration,
ZeroSystemReservationAmount,
ZeroMxLockDuration,
ZeroReplyDeposit,
}
Expand description
Error type returned by gstd API while using invalid arguments.
Variants§
EmptyWaitDuration
This error occurs when providing zero duration to waiting functions
(e.g. see exactly
and up_to
functions in
CodecMessageFuture
).
ZeroSystemReservationAmount
This error occurs when providing zero gas amount to system gas reserving
function (see
Config::set_system_reserve
).
ZeroMxLockDuration
This error occurs when providing zero duration to mutex lock function
ZeroReplyDeposit
This error occurs when handle_reply is called without (or with zero)
reply deposit
(see MessageFuture::handle_reply
).
Trait Implementations§
source§impl Clone for UsageError
impl Clone for UsageError
source§fn clone(&self) -> UsageError
fn clone(&self) -> UsageError
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 UsageError
impl Debug for UsageError
source§impl Display for UsageError
impl Display for UsageError
source§impl PartialEq for UsageError
impl PartialEq for UsageError
impl Eq for UsageError
impl StructuralPartialEq for UsageError
Auto Trait Implementations§
impl Freeze for UsageError
impl RefUnwindSafe for UsageError
impl Send for UsageError
impl Sync for UsageError
impl Unpin for UsageError
impl UnwindSafe for UsageError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more