Struct PendingFinally
pub struct PendingFinally {
pub method: Token,
pub handler_offset: u32,
pub leave_target: Option<u32>,
}Expand description
A pending finally block queued for execution.
Finally blocks are queued during exception unwinding or when executing
leave instructions that exit protected regions. This structure tracks
the information needed to execute the finally and continue afterward.
§Usage Scenarios
- Exception unwinding: Finally blocks run before entering catch or propagating
- Leave instruction: Finally blocks run before transferring to the leave target
Fields§
§method: TokenThe method token containing the finally block.
handler_offset: u32The IL offset where the finally handler code begins.
leave_target: Option<u32>The target IL offset to jump to after the finally completes.
Some(offset)- Forleaveinstructions, the original leave targetNone- For exception unwinding, continue the unwind process
Trait Implementations§
§impl Clone for PendingFinally
impl Clone for PendingFinally
§fn clone(&self) -> PendingFinally
fn clone(&self) -> PendingFinally
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PendingFinally
impl RefUnwindSafe for PendingFinally
impl Send for PendingFinally
impl Sync for PendingFinally
impl Unpin for PendingFinally
impl UnwindSafe for PendingFinally
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more