pub enum Error {
Core(Error),
Timeout(u32, u32),
Convert(&'static str),
Decode(Error),
ReplyCode(ReplyCode),
EmptyWaitDuration,
ZeroSystemReservationAmount,
ZeroMxLockDuration,
}Expand description
Common error type returned by API functions from other modules.
Variants§
Core(Error)
gcore::errors::Error type.
Timeout(u32, u32)
Timeout reached while expecting for reply.
Convert(&'static str)
Conversion error.
Decode(Error)
Decoding error.
ReplyCode(ReplyCode)
Reply code returned by another program.
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
Implementations§
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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