#[non_exhaustive]pub enum SendError {
Busy,
TooLarge {
cap: usize,
},
Contract(Contract),
Detached,
}Expand description
A Caller::command or Caller::query that failed before sending.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Busy
The runtime cannot accept a call now. Retryable.
TooLarge
The arguments are larger than the call’s capacity.
Contract(Contract)
A contract error, such as an unknown interaction.
Detached
The runtime behind the port is gone.
Trait Implementations§
impl Copy for SendError
impl Eq for SendError
Source§impl From<SendError> for ClientError
impl From<SendError> for ClientError
impl StructuralPartialEq for SendError
Auto Trait Implementations§
impl Freeze for SendError
impl RefUnwindSafe for SendError
impl Send for SendError
impl Sync for SendError
impl Unpin for SendError
impl UnsafeUnpin for SendError
impl UnwindSafe for SendError
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