pub enum Unwind<R, B, C, E> {
Return(R),
Break(B),
Continue(C),
Exception(E),
Cancelled,
Closed,
}Expand description
A language-neutral reason for leaving a dynamic extent.
Variants§
Return(R)
Ordinary function or block return.
Break(B)
Exit a repetition construct.
Continue(C)
Continue a repetition construct.
Exception(E)
Exceptional completion.
Cancelled
Cooperative cancellation.
Closed
Explicit close of a suspended extent.
Trait Implementations§
impl<R: Eq, B: Eq, C: Eq, E: Eq> Eq for Unwind<R, B, C, E>
Source§impl<R: PartialEq, B: PartialEq, C: PartialEq, E: PartialEq> PartialEq for Unwind<R, B, C, E>
impl<R: PartialEq, B: PartialEq, C: PartialEq, E: PartialEq> PartialEq for Unwind<R, B, C, E>
impl<R: PartialEq, B: PartialEq, C: PartialEq, E: PartialEq> StructuralPartialEq for Unwind<R, B, C, E>
Auto Trait Implementations§
impl<R, B, C, E> Freeze for Unwind<R, B, C, E>
impl<R, B, C, E> RefUnwindSafe for Unwind<R, B, C, E>
impl<R, B, C, E> Send for Unwind<R, B, C, E>
impl<R, B, C, E> Sync for Unwind<R, B, C, E>
impl<R, B, C, E> Unpin for Unwind<R, B, C, E>
impl<R, B, C, E> UnsafeUnpin for Unwind<R, B, C, E>
impl<R, B, C, E> UnwindSafe for Unwind<R, B, C, E>
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