pub enum KernelEvent {
Show 17 variants
AllocationStarted {
op_id: u64,
total: u128,
plan_len: u32,
},
AllocationStepFailed {
op_id: u64,
index: u32,
remaining: u128,
total_allocated: u128,
},
AllocationCompleted {
op_id: u64,
has_withdrawal: bool,
},
WithdrawalStarted {
op_id: u64,
amount: u128,
escrow_shares: u128,
owner: Address,
receiver: Address,
},
WithdrawalCollected {
op_id: u64,
burn_shares: u128,
collected: u128,
},
WithdrawalStopped {
op_id: u64,
escrow_shares: u128,
},
WithdrawalSkipped {
id: u64,
owner: Address,
receiver: Address,
escrow_shares: u128,
expected_assets: u128,
reason: WithdrawalSkipReason,
},
RefreshStarted {
op_id: u64,
plan_len: u32,
},
RefreshCompleted {
op_id: u64,
},
PayoutCompleted {
op_id: u64,
success: bool,
burn_shares: u128,
refund_shares: u128,
amount: u128,
},
DepositProcessed {
owner: Address,
receiver: Address,
assets_in: u128,
shares_out: u128,
},
AtomicWithdrawProcessed {
owner: Address,
receiver: Address,
shares_burned: u128,
assets_out: u128,
},
WithdrawalRequested {
id: u64,
owner: Address,
receiver: Address,
shares: u128,
expected_assets: u128,
},
ExternalAssetsSynced {
op_id: u64,
new_external_assets: u128,
total_assets: u128,
},
FeesRefreshed {
now_ns: u64,
total_assets: u128,
},
PauseUpdated {
paused: bool,
},
EmergencyResetCompleted {
op_id: u64,
from_state: u32,
},
}Variants§
AllocationStarted
Allocation operation started.
AllocationStepFailed
Allocation step failed and allocation aborted.
Fields
AllocationCompleted
Allocation completed (either returns to Idle or proceeds to withdrawal).
WithdrawalStarted
Withdrawal operation started.
WithdrawalCollected
Withdrawal collected enough to proceed to payout.
WithdrawalStopped
Withdrawal stopped and escrow refunded.
WithdrawalSkipped
Withdrawal skipped and escrow refunded without entering withdrawal execution.
RefreshStarted
Refresh operation started.
RefreshCompleted
Refresh operation completed.
PayoutCompleted
Payout completed (success or failure).
DepositProcessed
Deposit processed and shares minted.
AtomicWithdrawProcessed
WithdrawalRequested
Withdrawal requested and enqueued.
ExternalAssetsSynced
External assets synchronized for an operation.
FeesRefreshed
Fees refreshed for the vault.
PauseUpdated
Pause state updated.
EmergencyResetCompleted
Emergency reset forced the vault back to Idle.
Implementations§
Source§impl KernelEvent
impl KernelEvent
Sourcepub fn required_addresses(&self) -> Vec<Address>
pub fn required_addresses(&self) -> Vec<Address>
Collect all addresses referenced by this event.
Trait Implementations§
Source§impl Clone for KernelEvent
impl Clone for KernelEvent
Source§fn clone(&self) -> KernelEvent
fn clone(&self) -> KernelEvent
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 KernelEvent
impl Debug for KernelEvent
Source§impl From<KernelEvent> for KernelEffect
impl From<KernelEvent> for KernelEffect
Source§fn from(event: KernelEvent) -> Self
fn from(event: KernelEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KernelEvent
impl PartialEq for KernelEvent
Source§impl Serialize for KernelEvent
impl Serialize for KernelEvent
impl Eq for KernelEvent
impl StructuralPartialEq for KernelEvent
Auto Trait Implementations§
impl Freeze for KernelEvent
impl RefUnwindSafe for KernelEvent
impl Send for KernelEvent
impl Sync for KernelEvent
impl Unpin for KernelEvent
impl UnwindSafe for KernelEvent
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