pub struct NewBounceBody {
pub original_body: Cell,
pub original_info: Lazy<NewBounceOriginalInfo>,
pub bounced_by_phase: u8,
pub exit_code: i32,
pub compute_phase: Option<NewBounceComputePhaseInfo>,
}Expand description
New bounce message body.
Fields§
§original_body: CellCell that contains the body of the original message.
If MessageExtraFlags::is_full_body_in_bounced returns true,
then the whole body is returned, otherwise it is only the root without refs.
original_info: Lazy<NewBounceOriginalInfo>Original message info
bounced_by_phase: u8Id of a failed phase.
0- compute phase was skipped.exit_codedenotes the skip reason:exit_code = -1- no state (account is uninit or frozen, and no state init is present in the message).exit_code = -2- bad state (account is uninit or frozen, and state init in the message has the wrong hash).exit_code = -3- no gas.exit_code = -4- account is suspended.
1- compute phase failed.exit_codeis the value from the compute phase.2- action phase failed.exit_codeis the value from the action phase.
exit_code: i32Exit code (or a skip reason if compute phase was skipped).
compute_phase: Option<NewBounceComputePhaseInfo>Compute phase info
Implementations§
Source§impl NewBounceBody
impl NewBounceBody
Sourcepub const COMPUTE_PHASE_SKIPPED: u8 = 0
pub const COMPUTE_PHASE_SKIPPED: u8 = 0
State of NewBounceBody::bounced_by_phase when compute phase was skipped.
Sourcepub const COMPUTE_PHASE_FAILED: u8 = 1
pub const COMPUTE_PHASE_FAILED: u8 = 1
State of NewBounceBody::bounced_by_phase when compute phase failed.
Sourcepub const ACTION_PHASE_FAILED: u8 = 2
pub const ACTION_PHASE_FAILED: u8 = 2
State of NewBounceBody::bounced_by_phase when action phase failed.
Sourcepub const EXIT_CODE_NO_STATE: i32 = -1
pub const EXIT_CODE_NO_STATE: i32 = -1
State of NewBounceBody::exit_code when there was no state.
Sourcepub const EXIT_CODE_BAD_STATE: i32 = -2
pub const EXIT_CODE_BAD_STATE: i32 = -2
State of NewBounceBody::exit_code when there was an invalid state.
Sourcepub const EXIT_CODE_NO_GAS: i32 = -3
pub const EXIT_CODE_NO_GAS: i32 = -3
State of NewBounceBody::exit_code when there was not enough gas.
Sourcepub const EXIT_CODE_SUSPENDED: i32 = -4
pub const EXIT_CODE_SUSPENDED: i32 = -4
State of NewBounceBody::exit_code when the account was suspended.
Sourcepub const fn bounce_reason(&self) -> Option<BounceReason>
pub const fn bounce_reason(&self) -> Option<BounceReason>
Get a structured bounce reason info (if well-formed).
Trait Implementations§
Source§impl Clone for NewBounceBody
impl Clone for NewBounceBody
Source§fn clone(&self) -> NewBounceBody
fn clone(&self) -> NewBounceBody
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NewBounceBody
impl Debug for NewBounceBody
Source§impl<'tlb> Load<'tlb> for NewBounceBody
impl<'tlb> Load<'tlb> for NewBounceBody
Source§impl PartialEq for NewBounceBody
impl PartialEq for NewBounceBody
Source§impl Store for NewBounceBody
impl Store for NewBounceBody
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
impl Eq for NewBounceBody
impl StructuralPartialEq for NewBounceBody
Auto Trait Implementations§
impl Freeze for NewBounceBody
impl !RefUnwindSafe for NewBounceBody
impl Send for NewBounceBody
impl Sync for NewBounceBody
impl Unpin for NewBounceBody
impl !UnwindSafe for NewBounceBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
self to key and returns true if they are equal.